-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate/Create schema from C#? #120
Comments
How does this approach sounds:
meaning, reference the internal installed tool library in Your project
@srad, is this feasible ? |
Thank you, that of course would probably work, I can also just execute a command to the shell, but I thought this is a more general case which concerns deployment. Why not just run a migration when the cache is added in Program.cs? Like Hangfire for example does, it just is added and runs internally the migration and just works. |
Because that would mix up the separated responsibilities rule:
|
Is there a way to call the
dotnet mysql-cache create ...
from C# code, like withDbContext
andEnsureMigrated()
? Otherwise I need to roll out a launch script for every container image to rundotnet mysql-cache create
before each application launches.The text was updated successfully, but these errors were encountered: