Entity Framework - Role model view of storage

When the model is generated using EdmGen tool while generating the "Project Name .Views.cs" file, the following command
edmgen  / mode :fullgeneration   / c: " Data Source=.; Initial Catalog=Project1; Integrated Security=SSPI "   / project :Project1   / entitycontainer :Project1Entities   / namespace :Project1Model   / language :CSharp
Generating a file comprising: Project.csdl, Project1.ssdl, Project1.msl, Project1.ObjectLayer.cs , Project1.Views.cs
wherein Project1.Views.cs model view is stored.
In the Entity Framework, when the query is executed, EF msl according to first file to convert solid models into Entity SQL view, which includes the appropriate query. Entity SQL is created because the efficiency is cached. Thus, in practical applications for the avoidance consumption generated view is stored, the memory may be pre-generated model view, and added to the project.

Reproduced in: https: //www.cnblogs.com/crossingdawn/archive/2009/07/27/1532175.html

Guess you like

Origin blog.csdn.net/weixin_33862514/article/details/93409753