Skip to content

Commit d8fec4c

Browse files
committed
update
1 parent ee32e10 commit d8fec4c

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

BookCollection/DAL/SeedData/BookInitializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
namespace 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
{

TipsAndLinks.txt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)