简体   繁体   中英

Compiled LINQ queries in .NET 4.5

I've read that in .NET 4.5 and EF5 queries are compiled by default, thus requiring no "work" by the developer to make their linq queries compilable.

If I install .NET 4.5 on my server and target my app to use .net 4.5 will all my Entity Framework queries be compiled and thus receive the increase in performance?

Your queries will be compiled by a background worker and cached. This is part of the query pipeline and cannot be circumvented. So if you are using EF5 on .NET 4.5 your queries will be compiled and cached.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM