You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.
But for 2 others we still can't do it without modifications of our context:
/// <summary>/// Base class for the Entity Framework database context used for identity./// </summary>publicclassIdentityDbContext:IdentityDbContext<IdentityUser,IdentityRole,string>{}/// <summary>/// Base class for the Entity Framework database context used for identity./// </summary>/// <typeparam name="TUser">The type of the user objects.</typeparam>publicclassIdentityDbContext<TUser>:IdentityDbContext<TUser,IdentityRole,string>whereTUser:IdentityUser{}
As a result you are forcing us to inherit our dbcontext from IdentityDbContext : IdentityDbContext<IdentityUser, IdentityRole, string> and making the other 2 others versions IdentityDbContext<TUser>, IdentityDbContext completely useless.
The text was updated successfully, but these errors were encountered:
@HaoK@rustd I just looked at this bug and I agree we should just add the constructors to all the versions of IdentityDbContext to take the same parameters as the base. I am assigning it to @HaoK.
We need to configure dbcontext as it mentioned here: https://github.com/aspnet/EntityFramework/wiki/Configuring-a-DbContext
It's cool that we make it possible to pass DbContextOptions via constructor for this class:
#570
#418
But for 2 others we still can't do it without modifications of our context:
As a result you are forcing us to inherit our dbcontext from
IdentityDbContext : IdentityDbContext<IdentityUser, IdentityRole, string>
and making the other 2 others versionsIdentityDbContext<TUser>
,IdentityDbContext
completely useless.The text was updated successfully, but these errors were encountered: