IdentityDbContext<TUser,TRole,TKey,TUserClaim,TUserRole,TUserLogin,TRoleClaim,TUserToken>.Roles 属性

定义

获取或设置 DbSet<TEntity> 角色的 。

public:
 property Microsoft::EntityFrameworkCore::DbSet<TRole> ^ Roles { Microsoft::EntityFrameworkCore::DbSet<TRole> ^ get(); void set(Microsoft::EntityFrameworkCore::DbSet<TRole> ^ value); };
public:
 virtual property Microsoft::EntityFrameworkCore::DbSet<TRole> ^ Roles { Microsoft::EntityFrameworkCore::DbSet<TRole> ^ get(); void set(Microsoft::EntityFrameworkCore::DbSet<TRole> ^ value); };
public Microsoft.EntityFrameworkCore.DbSet<TRole> Roles { get; set; }
public virtual Microsoft.EntityFrameworkCore.DbSet<TRole> Roles { get; set; }
member this.Roles : Microsoft.EntityFrameworkCore.DbSet<'Role (requires 'Role :> Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityRole<'Key, 'UserRole, 'RoleClaim>)> with get, set
member this.Roles : Microsoft.EntityFrameworkCore.DbSet<'Role (requires 'Role :> Microsoft.AspNetCore.Identity.IdentityRole<'Key>)> with get, set
Public Property Roles As DbSet(Of TRole)
Public Overridable Property Roles As DbSet(Of TRole)

属性值

DbSet<TRole>

适用于