Closed trreeves closed 7 years ago
It's a pretty good idea, but if such thing was provided for the SQL Server persistence implementation I would probably expect it to exist for PostgreSQL, Azure Service Bus, MSMQ, etc. too.
I'll park this under "great ideas, need to boil a little longer though" for now 😄 It can always be provided in the form of an external NuGet package that provides an API similar to the one you posted.
Yeah sure, I understand. Just have that requirement in mind - I don't think we're that special in wanting to do the deploy this way.
Typically in a web application, the SQL login used by the application will have restricted permissions, obviously for security reasons. Usually creating SQL schema is required to happen upfront, when the application is being deployed (and often performed in scripts, i.e. Powershell).
I have written some methods that make this easy to achieve for the different SQL persistence types, something like...
If you think this is of value I can submit a PR.
Cheers.