Share via


IdentityDbContext<TUser>.Roles Property

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

Syntax

'Declaration
Public Overridable Property Roles As IDbSet(Of IdentityRole)
    Get 
    Set
'Usage
Dim instance As IdentityDbContext 
Dim value As IDbSet(Of IdentityRole)

value = instance.Roles

instance.Roles = value
public virtual IDbSet<IdentityRole> Roles { get; set; }
public:
virtual property IDbSet<IdentityRole^>^ Roles {
    IDbSet<IdentityRole^>^ get ();
    void set (IDbSet<IdentityRole^>^ value);
}
abstract Roles : IDbSet<IdentityRole> with get, set 
override Roles : IDbSet<IdentityRole> with get, set
function get Roles () : IDbSet<IdentityRole>
function set Roles (value : IDbSet<IdentityRole>)

Property Value

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

See Also

Reference

IdentityDbContext<TUser> Class

Microsoft.AspNet.Identity.EntityFramework Namespace