RoleStore<TRole, TKey, TUserRole> Constructor (DbContext)
Initializes a new instance of the RoleStore<TRole, TKey, TUserRole> class which takes a database context and wires up the stores with default instances using the context.
Namespace: Microsoft.AspNet.Identity.EntityFramework
Assembly: Microsoft.AspNet.Identity.EntityFramework (in Microsoft.AspNet.Identity.EntityFramework.dll)
Syntax
public RoleStore(
DbContext context
)
public:
RoleStore(
DbContext^ context
)
new :
context:DbContext -> RoleStore
Public Sub New (
context As DbContext
)
Parameters
context
Type: System.Data.Entity.DbContextThe context.
See Also
RoleStore<TRole, TKey, TUserRole> Class
Microsoft.AspNet.Identity.EntityFramework Namespace
ASP.NET Identity
Return to top