问题
Has anybody heard if there is any word on whether we will have compiled queries with EF Code First DbContexts? Or, if it is already possible, and I am doing it wrong, can somebody point me in the right direction? It would seem Bing and Google don't have a lot of information on it yet.
回答1:
The CTP4 had compiled query support, but it was removed in CTP5, vote it up if you want it back here:
http://data.uservoice.com/forums/72025-ado-net-entity-framework-ef-feature-suggestions/suggestions/1379241-bring-back-compiled-queries-in-code-first
and/or here:
http://data.uservoice.com/forums/72025-ado-net-entity-framework-ef-feature-suggestions/suggestions/1012355-automatic-compiled-queries?ref=title
来源:https://stackoverflow.com/questions/5031935/ef-code-first-dbcontext-and-compiled-queries