如何在LINQ to Entity的队列中使用like关键字? [英] How can I use the like keyword in queering to LINQ to Entity ?
本文介绍了如何在LINQ to Entity的队列中使用like关键字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一种方法我需要特定日期的产品。
string forDate =2014-08-26;
I have a method I need the product of specific date.
string forDate="2014-08-26";
List<Products> AllProductsForDate(string forDate)
{
var query = ctx.Products.ToList();
return query;
}
推荐答案
查看链接:
< a href =http://codesamplez.com/database/linq-to-sql-like-operator>喜欢关键字-LINQ
希望它有助于:)
See the link:
Like Keyword-LINQ
Hope it helps :)
这篇关于如何在LINQ to Entity的队列中使用like关键字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文