摘要: using System.Data.Linq;using System.Data.Linq.Mapping; namespace ConsoleApplication1388{ class Program { static void Main(string[] args) { string sour 阅读全文
posted @ 2016-10-06 14:50 FredGrit 阅读(464) 评论(0) 推荐(0) 编辑
摘要: using System.Data.Linq;using System.Data.Linq.Mapping; namespace ConsoleApplication1388{ class Program { static void Main(string[] args) { string sour 阅读全文
posted @ 2016-10-06 14:34 FredGrit 阅读(322) 评论(0) 推荐(0) 编辑
摘要: LINQ to SQL will translate .NET methods in this manner: text.StartsWith(...) = LIKE ...% text.Contains(...) = LIKE %...% text.EndsWith(...) = LIKE %.. 阅读全文
posted @ 2016-10-06 11:56 FredGrit 阅读(379) 评论(0) 推荐(0) 编辑
摘要: using (AdventureWorks2012Entities db = new AdventureWorks2012Entities()) { int num = (from stu in db.Customer orderby stu.CustomerID select stu).ToLis 阅读全文
posted @ 2016-10-06 11:19 FredGrit 阅读(672) 评论(0) 推荐(0) 编辑