Hello. I'm creating a Blazor app with Sqlite/EF Core database. On initial startup, the app will ask for a "Data Path". The app will then create the needed data directories including the database path and file.
All of instructions I see for SQLite/EF Core show the creation of the .db file using a migration command. What would be the best way to create this .db in the Data Path? Should the app copy over a pre-migrated .db file when the Data Path is created or is there a way to do a Initial Migrate inside the program and not by manual command?
Thank you.
All of instructions I see for SQLite/EF Core show the creation of the .db file using a migration command. What would be the best way to create this .db in the Data Path? Should the app copy over a pre-migrated .db file when the Data Path is created or is there a way to do a Initial Migrate inside the program and not by manual command?
Thank you.