Add SQL Identity support
This commit is contained in:
parent
ab14bc62b5
commit
2ceb4b3a6c
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue