Merge remote-tracking branch 'da/AddConstructorToDbContext' into haok/9-23m

This commit is contained in:
Hao Kung 2015-09-23 13:19:05 -07:00
commit 5c0700791a
1 changed files with 21 additions and 0 deletions

View File

@ -3,6 +3,7 @@
using System;
using Microsoft.Data.Entity;
using Microsoft.Data.Entity.Infrastructure;
using Microsoft.Data.Entity.Metadata;
namespace Microsoft.AspNet.Identity.EntityFramework
@ -17,6 +18,26 @@ namespace Microsoft.AspNet.Identity.EntityFramework
where TRole : IdentityRole<TKey>
where TKey : IEquatable<TKey>
{
public IdentityDbContext(DbContextOptions options) : base(options)
{
}
public IdentityDbContext(IServiceProvider serviceProvider) : base(serviceProvider)
{
}
public IdentityDbContext(IServiceProvider serviceProvider, DbContextOptions options) : base(serviceProvider, options)
{
}
protected IdentityDbContext()
{
}
public DbSet<TUser> Users { get; set; }
public DbSet<IdentityUserClaim<TKey>> UserClaims { get; set; }
public DbSet<IdentityUserLogin<TKey>> UserLogins { get; set; }