Сообщение Как вы создаёте базы данных? от 27.07.2020 5:44
Изменено 04.08.2020 10:23 Arsen.Shnurkov
Там специалисты по SQL (возможно даже с Java-ой), а мне нужны советы по .Net
Sinix пишет
Дата: 27.04.10
.dbschema (XML-файл такой) -> VSDBCMD.EXE (утилита командной строки)
и вызывать это всё командой
MSBuild /t:Build;Deploy MyDatabaseProject.dbproj
А где исходники от VSDBCMD.EXE ? Как то же самое в опенсорсе проделать-то?
Did you get way into doing command line deployments of your databases using vsdbcmd.exe? Well, if you are one of those developers and you’ve upgraded to the latest version of the SQL Server Database Projects, then you might be wondering just where vsdbcmd.exe went.
Answer: vsdbcmd.exe has been replaced with SqlPackage.exe.
DACPAC это zip-файл.
И чё? А на github как его хранить — в бинарном виде?
А работать с ним как?
https://developercommunity.visualstudio.com/idea/920512/database-projectsdacpac-should-support-postgres.html
https://github.com/Microsoft/DACExtensions
https://stackoverflow.com/questions/40747082/finding-data-type-information-for-certain-objects-in-dacfx-apiDacFx is the core technology the SQL Server Data Tools leverages for incremental database deployments, modelling and validation of database schemas and other key functionality. DacFx provides a DacServices API that supports programmatic deployment of Dacpac files.
https://stackoverflow.com/questions/44058693/how-to-get-type-of-a-column-using-dacfx-api
Допустим есть некий файл "Microsoft.Data.Tools.Schema.SqlTasks.targets":
<Import Condition="'$(SQLDBExtensionsRefPath)' == ''" Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets" />
Так-то я бы может быть с ним и собрал бы при помощи msbuild проект .sqlproj
но где мне его взять (под опенсорсной лицензией) ?
Рекомендуют
https://github.com/lecaillon/Evolve
но простые скрипты это уже поздно. Я-то хотел из XML...
Ещё говорят
dotnet ef migrations script --idempotent
https://docs.microsoft.com/en-us/ef/core/managing-schemas/migrations/applying?tabs=dotnet-core-cli
Здесь мне непонятно, что общего у EF и у DacFx.
Там специалисты по SQL (возможно даже с Java-ой), а мне нужны советы по .Net
Sinix пишет
Дата: 27.04.10
.dbschema (XML-файл такой) -> VSDBCMD.EXE (утилита командной строки)
и вызывать это всё командой
MSBuild /t:Build;Deploy MyDatabaseProject.dbproj
А где исходники от VSDBCMD.EXE ? Как то же самое в опенсорсе проделать-то?
Did you get way into doing command line deployments of your databases using vsdbcmd.exe? Well, if you are one of those developers and you’ve upgraded to the latest version of the SQL Server Database Projects, then you might be wondering just where vsdbcmd.exe went.
Answer: vsdbcmd.exe has been replaced with SqlPackage.exe.
DACPAC это zip-файл.
И чё? А на github как его хранить — в бинарном виде?
А работать с ним как?
https://developercommunity.visualstudio.com/idea/920512/database-projectsdacpac-should-support-postgres.html
https://github.com/Microsoft/DACExtensions
https://stackoverflow.com/questions/40747082/finding-data-type-information-for-certain-objects-in-dacfx-apiDacFx is the core technology the SQL Server Data Tools leverages for incremental database deployments, modelling and validation of database schemas and other key functionality. DacFx provides a DacServices API that supports programmatic deployment of Dacpac files.
https://stackoverflow.com/questions/44058693/how-to-get-type-of-a-column-using-dacfx-api
Допустим есть некий файл "Microsoft.Data.Tools.Schema.SqlTasks.targets":
<Import Condition="'$(SQLDBExtensionsRefPath)' == ''" Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets" />
Так-то я бы может быть с ним и собрал бы при помощи msbuild проект .sqlproj
но где мне его взять (под опенсорсной лицензией) ?
Рекомендуют
https://github.com/lecaillon/Evolve
но простые скрипты это уже поздно. Я-то хотел из XML...
Ещё говорят
dotnet ef migrations script --idempotent
https://docs.microsoft.com/en-us/ef/core/managing-schemas/migrations/applying?tabs=dotnet-core-cli
Здесь мне непонятно, что общего у EF и у DacFx.
You can open an EDM designer in XML view where you can see all the three parts of the EDM: Conceptual schema (CSDL), Storage schema (SSDL) and mapping schema (MSL), together in XML view.