I'm trying to add some functionality to an application I'm writing, where the user can create a new Project
, which has it's own database. When this is done, the previous Project
database is to be exported to a .sql file that I can import and review later. Problem is, I can't see a way to export it. I've tried looking for a method to do so using:
using (var context = new DBContext())
{
context.Database. // no method here for export
}
Is there a way inside of entity to export the database to a .sql file?