How do I precompile an Entity Framework Code-First Query?

后端 未结 2 1925
我在风中等你
我在风中等你 2020-12-03 16:56

I am encountering some performance problems with my Entity Framework Code-First queries and I believe that precompilation may be the answer. If I were using \"normal\" Entit

2条回答
  •  借酒劲吻你
    2020-12-03 17:40

    As from the official announecment:

    "No compiled query support from DbContext Unfortunately due to some technical limitations in the compiled query functionality we shipped in .NET Framework 4.0 we are unable to support compiled queries via the DbContext API. We realize this is a painful limitation and will work to enable this for the next release. "

    Link.

提交回复
热议问题