DanWahlin/CustomerManager

disable motion continuous creation of bbdd for developing

Closed this issue · 1 comments

Hi there:

I created a new DB on a server, with new tables and each time the application is run from Visual Studio is completely deleted.

It is possible to disable the ongoing creation of the DB ...

I tried to cancel the process from reposiroty or from mongo and continues to create the DB

Thank you

Yep - just take out the data initialization call in the dbcontext class's constructor (https://github.com/DanWahlin/CustomerManager/blob/master/CustomerManager/Repository/CustomerManagerContext.cs).