Skip to content

Commit

Permalink
Fixing typo; adding migration creation notes
Browse files Browse the repository at this point in the history
  • Loading branch information
ardalis authored Aug 23, 2017
1 parent 8041509 commit 26a43cd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void ConfigureServices(IServiceCollection services)
```
1. Ensure your connection strings in `appsettings.json` point to a local SQL Server instance.

1. Open a command prompt in the Web folder and execute the following commands:
2. Open a command prompt in the Web folder and execute the following commands:

```
dotnet restore
Expand All @@ -76,5 +76,13 @@ dotnet ef database update -c appidentitydbcontext -p ../Infrastructure/Infrastru

These commands will create two separate databases, one for the store's catalog data and shopping cart information, and one for the app's user credentials and identity data.

1. Run the application.
3. Run the application.
The first time you run the application, it will seed both databases with data such that you should see products in the store, and you should be able to log in using the demouser@microsoft.com account.

Note: If you need to create migrations, you can use these commands:
```
-- create migration (from Web folder CLI)
dotnet ef migrations add InitialModel --context catalogcontext -p ../Infrastructure/Infrastructure.csproj -s Web.csproj -o Data/Migrations
dotnet ef migrations add InitialIdentityModel --context appidentitydbcontext -p ../Infrastructure/Infrastructure.csproj -s Web.csproj -o Identity/Migrations
```

0 comments on commit 26a43cd

Please sign in to comment.