“在哪里"用linq to sql

编程入门 行业动态 更新时间:2024-10-25 20:26:25
本文介绍了“在哪里"用linq to sql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

在文本框中输入关键字后,我试图为用户提供数据库表中的项目列表.我目前遇到的问题是,用户可以输入多个关键字,而我希望仅执行一次往返数据库的操作,并获得与多个关键字匹配的结果(或操作).有没有一种方法可以执行这样的任务而不必为每个关键字访问数据库?

I am trying to provide the user with a list of items in a database table upon entering keywords in a textbox. The problem i currently have is that the user can enter several keyword and i would like to be able to perform only one roundtrip to the database and get back results matchings several keywords (an OR operation). Is there a way to perform such a task without having to hit the database for every single keyword?

推荐答案

我找到了 post 为我要实现的目标提供了一个很好的解决方案.谢谢您的帮助!

I found a post that offer a pretty good solution to what I was trying to achieve. Thank you for your help!

更多推荐

“在哪里"用linq to sql

本文发布于:2023-11-16 21:56:06,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1607626.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:quot   linq   sql

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!