Skip to content

Commit

Permalink
Update DbContextOptions to DbContextOptionsBuilder (dotnet#4112)
Browse files Browse the repository at this point in the history
* Update DbContextOptions to DbContextOptionsBuilder

* Update identity.md

* Remove tabs
  • Loading branch information
ChristopherHaws authored and scottaddie committed Sep 6, 2017
1 parent 8dc2e41 commit 725d2b5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions aspnetcore/migration/identity.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ namespace NewMvc6Project.Models

ApplicationDbContext.cs:

<!-- literal_block {"ids": [], "names": [], "highlight_args": {}, "backrefs": [], "dupnames": [], "linenos": false, "classes": [], "xml:space": "preserve", "language": "c#"} -->

```csharp
using Microsoft.AspNetCore.Identity.EntityFramework;
using Microsoft.Data.Entity;
Expand All @@ -78,7 +76,7 @@ namespace NewMvc6Project.Models
Database.EnsureCreated();
}

protected override void OnConfiguring(DbContextOptions options)
protected override void OnConfiguring(DbContextOptionsBuilder options)
{
options.UseSqlServer();
}
Expand Down

0 comments on commit 725d2b5

Please sign in to comment.