2013年1月14日
摘要: LINQ的IN:var queryResult = from p in db.Productswhere (new int?[] {1,2}).Contains(p.CategoryID)select p;LINQ的IN解析成SQL:SELECT [t0].[ProductID], [t0].[ProductName], [t0].[SupplierID], [t0].[CategoryID], [t0].[QuantityPerUnit], [t0].[UnitPrice], [t0].[UnitsInStock], [t0].[UnitsOnOrder], [t0].[ReorderLev 阅读全文
posted @ 2013-01-14 16:44 douqiumiao 阅读(173) 评论(0) 推荐(0) 编辑