Replies: 1 comment 1 reply
-
@Xzelsius You can already choose a single database. Another option that would work today would be to pass the connection string as an IConfiguration value, because you can override individual configuration values from the Oakton command line args. I'm converting this to a discussion for now. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Based on Command Line Tooling
Would it be possible to have a new argument for the
marten-apply
/marten-assert
/ etc to pass in a connection string?In our case, we use dynamic tenant databases (meaning we only have the master connection string configured).
So we can't use
Apply...OnStartup()
nor can we use the CLI to migrate our databases.The only option we have is database migration on the first request to said database, which is not ideal.
It would be great if we could pass a connection string to
marten-apply
so we can migrate each tenant database individually.Beta Was this translation helpful? Give feedback.
All reactions