File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
BookCollection/DAL/SeedData Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1515namespace BookCollection . DAL
1616{
1717
18- public class BookInitializer : System . Data . Entity . CreateDatabaseIfNotExists < BookContext >
18+ public class BookInitializer : System . Data . Entity . DropCreateDatabaseAlways < BookContext >
1919 {
2020 protected override void Seed ( BookContext context )
2121 {
Original file line number Diff line number Diff line change @@ -10,4 +10,15 @@ Add in Views\web.config:
1010 <add namespace="FluentBootstrap" />
1111 <add namespace="FluentBootstrap.Mvc" />
1212 <add namespace="BookCollection" />
13- <add namespace="BookCollection.Helpers" />
13+ <add namespace="BookCollection.Helpers" />
14+
15+
16+ SQL SERVER CE LOGS (replace Administrator with own user):
17+ C:\Users\Administrator\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\v11.0
18+
19+ sqllocaldb.exe info -> shows all available instances
20+
21+ Reset instructions:
22+ Remove C:\Users\Administrator\AppData\Local\Microsoft\Microsoft SQL Server Local DB\Instances\v11.0
23+ sqllocaldb.exe c v11.0
24+ sqllocaldb.exe start v11.0
You can’t perform that action at this time.
0 commit comments