text: Before a query can be executed against an Entity Data Model (EDM), the Entity Framework generates a set of views that are used to access the database. The Entity Framework generates views the first time that a query is executed and then maintains these views for the lifetime of the ObjectContext instance. Because view generation is a significant part of the overall cost of executing a single query, the Entity Framework enables you to pre-generate these views and include them in the compiled project. For more information, see Performance Considerations for Entity Framework Applications. In addition to generating and validating EDM mapping and model.
  The procedures in this topic use pre-build and post-build events in Visual Studio, which are not supported in ASP.NET Web sites. To pre-generate views for an EDM that is used by an ASP.NET Web site, you should create the EDM in a separate class library, use the following procedure for the class library project, and reference the class library project in your ASP.NET Web site project. For more information, see How to: Use a Model Defined in a Class Library. Alternatively, consider using an ASP.NET Web application project instead of an ASP.NET Web site. This enables you to include pre-generated views in the same project as the ASP.NET Web application by using the procedures in this topic.
  Pre-generated views are validated at runtime to ensure that they are consistent with the current version of the EDM. This procedure ensures that the views match the EDM. You can skip the first procedure if the build process is already generating model and mapping files in the output directory. The procedures in this topic use the School model. You can generate this model by completing the Quickstart (Entity Framework).
  Visual Studio 2008 Service Pack 1 (SP1) is required to perform the procedures in this topic..
  In Solution Explorer, select the project for which you want to specify the build event.
  On the Project menu, click Project Properties.
  In the Properties page, click the Compile tab.
  Click the Build Events button.
  In the Build Events dialog box, add the following pre-build event, without line breaks:
  "%windir%\Microsoft.NET\Framework\v3.5\EdmGen.exe" /nologo /language:VB
  /mode:ViewGeneration "/inssdl:$(TargetDir)School.ssdl"
  "/incsdl:$(TargetDir)School.csdl" "/inmsl:$(TargetDir)School.msl"
  "/outviews:$(ProjectDir)School.Views.vb"
  Click OK.
  Close the Project Properties page.
  This generates the view file School.Views.cs.
  In Solution Explorer, right-click the project name and select Add Existing Item.
  In the Add Existing Item dialog box, navigate to the project's root folder and select the School.Views.vb file.
  Click Add.
  On the Project menu, click Properties.
  Select the Build Events tab.
  In the Pre-build Event Command Line window, add the following pre-build event, without line breaks:
  "%windir%\Microsoft.NET\Framework\v3.5\EdmGen.exe" /nologo /language:CSharp
  /mode:ViewGeneration "/inssdl:$(TargetDir)School.ssdl"
  "/incsdl:$(TargetDir)School.csdl" "/inmsl:$(TargetDir)School.msl"
  "/outviews:$(ProjectDir)School.Views.cs"
  The Add Existing Item dialog box appears.
  Navigate to the project's root folder and select the School.Views.cs file.://<assemblyFullName>/<resourceName>;
  Metadata= res://*/<resourceName>;
  res://*/<resourceName>;
  Metadata=res://*;
  Metadata=res://*;
  The resourceName may include the project namespace. For more information, see Connection Strings (Entity Framework).
  resourceName