IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim>.Roles Property

 

Gets or sets the collection of roles.

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

Syntax

public virtual IDbSet<TRole> Roles { get; set; }
public:
property IDbSet<TRole>^ Roles {
    virtual IDbSet<TRole>^ get();
    virtual void set(IDbSet<TRole>^ value);
}
abstract Roles : IDbSet<'TRole> with get, set
override Roles : IDbSet<'TRole> with get, set
Public Overridable Property Roles As IDbSet(Of TRole)

Property Value

Type: System.Data.Entity.IDbSet<TRole>

The collection of roles.

See Also

IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> Class
Microsoft.AspNet.Identity.EntityFramework Namespace
ASP.NET Identity

Return to top