Entity Framework initialization is SLOW — what can I do to bootstrap it faster?
My EF 4.3.1 model has 200-odd tables. Initial startup is horrible, several minutes. A DotTrace-captured profile implies some terrible algorithm/scalability choices deep in the framework, as evidenced by the millions of calls to a number of methods down there and the 36 million IEnumerable.Contains() calls. Here is a snippet, this is all triggered by the first query done on the database (future queries don't do this and are fine). What can I do to my model to make this less painful? Can I precompile this somehow? Better, can the EF team please address these issues or open source the framework