Entity Framework 6 Compiled LINQ Query

后端 未结 1 1295
生来不讨喜
生来不讨喜 2020-12-19 00:40

I\'m trying to improve performance of a web application by caching a query.

    public static Func, IQueryable

        
相关标签:
1条回答
  • 2020-12-19 01:14

    Ok it seems that in EF5 and greater the queries are automatically compiled and there is no need to compile them. The ObjectContext is not used anymore, and we have now DbContext: Compiled Query no implicit reference conversion to ObjectContext

    Another interesting post on Compiled Query: http://blog.codinghorror.com/compiled-or-bust/

    0 讨论(0)
提交回复
热议问题