Example #1
0
 public static IdentityBuilder AddEntityFrameworkStores <TContext, TKey>(this IdentityBuilder builder)
     where TContext : DbContext
     where TKey : IEquatable <TKey>
 {
     builder.Services.Add(IdentityEntityFrameworkServices.GetDefaultServices(builder.UserType, builder.RoleType, typeof(TContext), typeof(TKey)));
     return(builder);
 }
 public static IdentityBuilder AddEntityFrameworkStores <TContext>(this IdentityBuilder builder)
     where TContext : DbContext
 {
     builder.Services.TryAdd(IdentityEntityFrameworkServices.GetDefaultServices(builder.UserType, builder.RoleType, typeof(TContext)));
     return(builder);
 }