提高Linq to Sql 性能笔记
时间:2010-12-17 来源:John Tsui
Func<LinqObjectDataContext, string, IQueryable<product>> q = CompiledQuery.Compile<LinqObjectDataContext, string, IQueryable<product>> ((LinqObjectDataContext nw, string name) => from o in nw.Products where o.ProductName==name select o);MSDN:http://msdn.microsoft.com/en-us/library/bb548979.aspx
3:当只需检索数据时设置 ObjectTrackingEnabled=false
相关阅读 更多 +
排行榜 更多 +