已解决
Linq-to-SQL的性能优化
来自网友在路上 178878提问 提问时间:2023-11-09 16:18:28阅读次数: 78
最佳答案 问答题库788位专家为你答疑解惑
Linq-to-SQL的性能优化,根据我的个人实践和效果降序排列,如下:
1. 预编译 CompiledQuery (如果执行次数不止一次的话)
/// <summary>
/// Utility class to store compiled queries
/// </summary>
public static class QueriesUtility
{
/// <summary>
/// Gets the query that returns categories with more than five products.
/// </summary>
/// <value>The query containing categories with more than five products.</value>
public static Func<NorthwindDataContext, int, IEnumerable<Category>>
查看全文
99%的人还看了
相似问题
猜你感兴趣
版权申明
本文"Linq-to-SQL的性能优化":http://eshow365.cn/6-36349-0.html 内容来自互联网,请自行判断内容的正确性。如有侵权请联系我们,立即删除!