RoleStore<TRole> Class

 

Represents an Entity Framework implementation of a role store.

Namespace:   Microsoft.AspNet.Identity.EntityFramework
Assembly:  Microsoft.AspNet.Identity.EntityFramework (in Microsoft.AspNet.Identity.EntityFramework.dll)

System.Object
  Microsoft.AspNet.Identity.EntityFramework.RoleStore<TRole, TKey, TUserRole>
    Microsoft.AspNet.Identity.EntityFramework.RoleStore<TRole>

public class RoleStore<TRole> : RoleStore<TRole, string, IdentityUserRole>, 
	IQueryableRoleStore<TRole>, IQueryableRoleStore<TRole, string>, 
	IRoleStore<TRole, string>, IDisposable
where TRole : new(), IdentityRole

Type Parameters

TRole

The type of the role.

NameDescription
System_CAPS_pubmethodRoleStore<TRole>()

Initializes a new instance of the RoleStore<TRole> class.

System_CAPS_pubmethodRoleStore<TRole>(DbContext)

Initializes a new instance of the RoleStore<TRole> class.

NameDescription
System_CAPS_pubpropertyContext

Gets the context for the store.(Inherited from RoleStore<TRole, TKey, TUserRole>.)

System_CAPS_pubpropertyDisposeContext

Gets or sets a value that indicates whether to call dispose on the DbContext during Dispose.(Inherited from RoleStore<TRole, TKey, TUserRole>.)

System_CAPS_pubpropertyRoles

Gets an IQueryable<T> of users.(Inherited from RoleStore<TRole, TKey, TUserRole>.)

NameDescription
System_CAPS_pubmethodCreateAsync(TRole)

Asynchronously inserts an entity.(Inherited from RoleStore<TRole, TKey, TUserRole>.)

System_CAPS_pubmethodDeleteAsync(TRole)

Asynchronously marks an entity for deletion.(Inherited from RoleStore<TRole, TKey, TUserRole>.)

System_CAPS_pubmethodDispose()

Releases all resources used by the current instance of the RoleStore<TRole, TKey, TUserRole>.(Inherited from RoleStore<TRole, TKey, TUserRole>.)

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the RoleStore<TRole, TKey, TUserRole> class and optionally releases the managed resources.(Inherited from RoleStore<TRole, TKey, TUserRole>.)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodFindByIdAsync(TKey)

Asynchronously finds a role by using the specified identifier.(Inherited from RoleStore<TRole, TKey, TUserRole>.)

System_CAPS_pubmethodFindByNameAsync(String)

Asynchronously finds a role by name.(Inherited from RoleStore<TRole, TKey, TUserRole>.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodUpdateAsync(TRole)

Asynchronously updates an entity.(Inherited from RoleStore<TRole, TKey, TUserRole>.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: