我需要多搜索 [英] iam need multi search
本文介绍了我需要多搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi
我需要多次搜索
i当用户需要时每个字段都可填写在下面的图片中
搜索结果显示填写的字段
我需要使用linq查询
http://1.graph.uphero.com/up/0aee3a5f4643 .png [ ^ ]
var 查询=(来自 P temp1.Vbuys
其中 P.Fage == Tage。 text.trim()
选择 new {P.Tname,P.TFamil,P。 Tage})。ToList();
解决方案
您可能想要考虑谓词构建者:
http://www.albahari.com/nutshell/predicatebuilder.aspx [ ^ ]
< blockquote>
var 查询=(来自 P in temp1.Vbuys
其中 P.Fage == Tage.text.trim()&& P.Famil == TFamil.text.trim()&& P.name == Tname.text.trim()
选择 new {P.Tname ,P.TFamil,P.Tage})。ToList();
hi
iam need multi seach
i want when user Each of the fields can be filled in the picture below
Search results show the filling of fields
iam need this query with linq
http://1.graph.uphero.com/up/0aee3a5f4643.png[^]
var Query = (from P in temp1.Vbuys
where P.Fage == Tage.text.trim()
select new { P.Tname, P.TFamil,P.Tage }).ToList();
解决方案
You might want to consider the predicatebuilder:
http://www.albahari.com/nutshell/predicatebuilder.aspx[^]
var Query = (from P in temp1.Vbuys where P.Fage == Tage.text.trim() && P.Famil==TFamil.text.trim() && P.name== Tname.text.trim() select new { P.Tname, P.TFamil,P.Tage }).ToList();
这篇关于我需要多搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文