title: How To generate view for edmx to improve performance?
body: <p>i have data layer,business layer and design layer,in which my .edmx file is placed in data layer.
  now i want to generate views for my .edmx file to improve performance.
  i tried the following process:
  ->set .edmx file's <strong>Metadata Artiface Processing</strong> property to "<strong>Copy to Output Directory</strong>" 
  and then in my data layer's build event i put the following code:</p>
  
  <pre><code>"%windir%\Microsoft.NET\Framework\v4.0.30319\EdmGen.exe" /nologo /language:CSharp 
  </code></pre>
  
  <p>/mode:ViewGeneration "/inssdl:$(TargetDir)NeoSoftDataEntity.ssdl" 
  "/incsdl:$(TargetDir)NeoSoftDataEntity.csdl" "/inmsl:$(TargetDir)NeoSoftDataEntity.msl" 
  "/outviews:$(ProjectDir)NeoSoftDataEntity.Views.cs"
  but when build the solution.
  i get the following error:
  <strong>*<em>Error   2   The command ""%windir%\Microsoft.NET\Framework\v4.0.30319\EdmGen.exe" /nologo /language:CSharp 
  /mode:ViewGeneration "/inssdl:D:\NeoSoftWinApp\NeoSoftWinApp\bin\Debug\NeoSoftDataEntity.ssdl" 
  "/incsdl:D:\NeoSoftWinApp\NeoSoftWinApp\bin\Debug\NeoSoftDataEntity.csdl" "/inmsl:D:\NeoSoftWinApp\NeoSoftWinApp\bin\Debug\NeoSoftDataEntity.msl" 
  "/outviews:D:\NeoSoftWinApp\NeoSoftWinApp\NeoSoftDataEntity.Views.cs"" exited with code 123.    NeoSoftWinApp</strong>
  *</em></p>
  
  <p>how to resolve this problem?</p>