Auto-generate types by `dotnet publish` time
64J0 opened this issue · 3 comments
Is your feature request related to a problem? Please describe.
When we try to Dockerize an application that uses this tool, it depends on the database being up and running, with a specific schema. Ideally, we would not need this database service to publish the project (e.g. dotnet publish -c Release ...
).
Please let me know if you think this idea makes sense.
Describe the solution you'd like
It would be very nice if, when using this publish command, this tool scans all the code and creates the necessary types out of it. This way, it's able to compile the project without a database running.
Describe alternatives you've considered
Considered this option: #644.
But I don't think it's really feasible for a big project. Also, it would be great if we could keep only the code itself in our version management tool, instead of keeping both code and data.
Additional context
Which database?
With Microsoft SQL Server you have option to use SSDT: https://fsprojects.github.io/SQLProvider//core/mssqlssdt.html
With other databases you have option to use schema cache: https://fsprojects.github.io/SQLProvider//core/parameters.html#ContextSchemaPath