You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting up the application for just on the fly migrations, the library tries to automatically run start up based migrations. However, this fails because no database name is provided with a NoDatabaseNameFoundException exception in the StartUpDatabaseMigrationRunner class.
The work around is to add a stub class with the CollectionLocation attribute so that a database can be resolved.
Can you explain the work around a bit further i am trying to get the version 3.1.4 running, but I am not entirely sure on where i should insert the stub class so that it works. Maybe you can clarify it a bit.
Version: 3.1.4
dotnet version: 6
Problem
When setting up the application for just on the fly migrations, the library tries to automatically run start up based migrations. However, this fails because no database name is provided with a
NoDatabaseNameFoundException
exception in theStartUpDatabaseMigrationRunner
class.The work around is to add a stub class with the
CollectionLocation
attribute so that a database can be resolved.Proposed Solution
Allow the user to disable start up migrations or just not run start up based migrations if there is no database name is provided.
The text was updated successfully, but these errors were encountered: