标签:
using CRL 以获取扩展方法
一些系统方法已经解析,不支持的方法将会抛出异常
var query = Code.ProductDataManage.Instance.GetLamadaQuery(); query.Where(b => b.ProductName.Contains("122"));//包含字符串 query.Where(b => b.ProductName.In("111", "222"));//string in query.Where(b => b.AddTime.Between(DateTime.Now, DateTime.Now));//在时间段内 query.Where(b => b.AddTime.DateDiff(DatePart.dd, DateTime.Now) > 1);//时间比较 query.Where(b => b.ProductName.Substring(0, 3) == "222");//截取字符串 query.Where(b => b.Id.In(1, 2, 3));//in query.Where(b => b.Id.NotIn(1, 2, 3));//not in var list = Code.ProductDataManage.Instance.QueryList(query);
标签:
原文地址:http://www.cnblogs.com/hubro/p/4286236.html