Add SQL Identity support

This commit is contained in:
Suhas Joshi 2015-04-01 13:35:47 -07:00
parent ab14bc62b5
commit 2ceb4b3a6c
1 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,10 @@ namespace Microsoft.AspNet.Identity.EntityFramework
protected override void OnModelCreating(ModelBuilder builder)
{
// TODO: Temporary change.
// Can be reverted once https://github.com/aspnet/EntityFramework/issues/1960 is closed
builder.ForSqlServer().UseIdentity();
builder.Entity<TUser>(b =>
{
b.Key(u => u.Id);