更新时间:2023-02-08 17:30:25
您可以使用SQLMetal.exe生成您的dbml和或CS / VB文件。使用pre-构建脚本来启动和目标在您的DataContext项目属于该目录。
You can use SQLMetal.exe to generate your dbml and or cs/vb file. Use a pre-build script to start it and target the directory where your datacontext project belongs.
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\x64\sqlmetal.exe
/server:<SERVER>
/database:<database>
/code:"path\Solution\DataContextProject\dbContext.cs"
/language:csharp
/namespace:<your namespace>