edmgen.exe と edmgen2.exe を使用してバッチ ファイルを使用して EDMX 生成を自動化しようとしましたが、edmgen.exe を使用するとユーザー定義関数が生成されません。私は狂ったように検索して検索しました。解決策を見つけることができません。
"%windir%\Microsoft.NET\Framework\v4.0.30319\edmgen.exe" /mode:fullgeneration /connectionstring:"Data Source=localhost\sql2008r2; Initial Catalog=DB; Integrated Security=SSPI" /project:Project /entitycontainer:test /namespace:myns /language:CSharp
EDMGEN http://msdn.microsoft.com/en-us/library/vstudio/bb387165.aspx