mardi 8 septembre 2015

Database path for migrations of entity framework

I have local sqlite db near my *.exe file and I need that the core of migrations will generate (by Update-database command) database in this place. Now I'm using only database name as parameter of DbContext constructor, but db is not generated near my *.exe (I think because it is performed in another process).

How I can do it?

I've found the solution here, but it's not good... How to create dynamic database in entity framework with specified path?

Thanks.

Aucun commentaire:

Enregistrer un commentaire