UserStore<TUser,TRole,TContext,TKey> Klasa
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Reprezentuje nowe wystąpienie magazynu trwałości dla określonego typu użytkownika i roli.
generic <typename TUser, typename TRole, typename TContext, typename TKey>
where TUser : IdentityUser<TKey> where TRole : IdentityRole<TKey> where TContext : DbContext where TKey : IEquatable<TKey>public ref class UserStore : Microsoft::AspNetCore::Identity::EntityFrameworkCore::UserStore<TUser, TRole, TContext, TKey, Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityUserClaim<TKey> ^, Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityUserRole<TKey> ^, Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityUserLogin<TKey> ^, Microsoft::AspNetCore::Identity::EntityFrameworkCore::IdentityUserToken<TKey> ^>
generic <typename TUser, typename TRole, typename TContext, typename TKey>
where TUser : IdentityUser<TKey> where TRole : IdentityRole<TKey> where TContext : DbContext where TKey : IEquatable<TKey>public ref class UserStore : Microsoft::AspNetCore::Identity::EntityFrameworkCore::UserStore<TUser, TRole, TContext, TKey, Microsoft::AspNetCore::Identity::IdentityUserClaim<TKey> ^, Microsoft::AspNetCore::Identity::IdentityUserRole<TKey> ^, Microsoft::AspNetCore::Identity::IdentityUserLogin<TKey> ^, Microsoft::AspNetCore::Identity::IdentityUserToken<TKey> ^, Microsoft::AspNetCore::Identity::IdentityRoleClaim<TKey> ^>
public class UserStore<TUser,TRole,TContext,TKey> : Microsoft.AspNetCore.Identity.EntityFrameworkCore.UserStore<TUser,TRole,TContext,TKey,Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserClaim<TKey>,Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserRole<TKey>,Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserLogin<TKey>,Microsoft.AspNetCore.Identity.EntityFrameworkCore.IdentityUserToken<TKey>> where TUser : IdentityUser<TKey> where TRole : IdentityRole<TKey> where TContext : DbContext where TKey : IEquatable<TKey>
public class UserStore<TUser,TRole,TContext,TKey> : Microsoft.AspNetCore.Identity.EntityFrameworkCore.UserStore<TUser,TRole,TContext,TKey,Microsoft.AspNetCore.Identity.IdentityUserClaim<TKey>,Microsoft.AspNetCore.Identity.IdentityUserRole<TKey>,Microsoft.AspNetCore.Identity.IdentityUserLogin<TKey>,Microsoft.AspNetCore.Identity.IdentityUserToken<TKey>,Microsoft.AspNetCore.Identity.IdentityRoleClaim<TKey>> where TUser : IdentityUser<TKey> where TRole : IdentityRole<TKey> where TContext : DbContext where TKey : IEquatable<TKey>
type UserStore<'User, 'Role, 'Context, 'Key (requires 'User :> IdentityUser<'Key> and 'Role :> IdentityRole<'Key> and 'Context :> DbContext and 'Key :> IEquatable<'Key>)> = class
inherit UserStore<'User, 'Role, 'Context, 'Key, IdentityUserClaim<'Key>, IdentityUserRole<'Key>, IdentityUserLogin<'Key>, IdentityUserToken<'Key> (requires 'User :> IdentityUser<'Key> and 'Role :> IdentityRole<'Key> and 'Context :> DbContext and 'Key :> IEquatable<'Key>)>
type UserStore<'User, 'Role, 'Context, 'Key (requires 'User :> IdentityUser<'Key> and 'Role :> IdentityRole<'Key> and 'Context :> DbContext and 'Key :> IEquatable<'Key>)> = class
inherit UserStore<'User, 'Role, 'Context, 'Key, IdentityUserClaim<'Key>, IdentityUserRole<'Key>, IdentityUserLogin<'Key>, IdentityUserToken<'Key>, IdentityRoleClaim<'Key> (requires 'User :> IdentityUser<'Key> and 'Role :> IdentityRole<'Key> and 'Context :> DbContext and 'Key :> IEquatable<'Key>)>
Public Class UserStore(Of TUser, TRole, TContext, TKey)
Inherits UserStore(Of TUser, TRole, TContext, TKey, IdentityUserClaim(Of TKey), IdentityUserRole(Of TKey), IdentityUserLogin(Of TKey), IdentityUserToken(Of TKey))
Public Class UserStore(Of TUser, TRole, TContext, TKey)
Inherits UserStore(Of TUser, TRole, TContext, TKey, IdentityUserClaim(Of TKey), IdentityUserRole(Of TKey), IdentityUserLogin(Of TKey), IdentityUserToken(Of TKey), IdentityRoleClaim(Of TKey))
Parametry typu
- TUser
Typ reprezentujący użytkownika.
- TRole
Typ reprezentujący rolę.
- TContext
Typ klasy kontekstu danych używanej do uzyskiwania dostępu do magazynu.
- TKey
Typ klucza podstawowego dla jednostek użytkownika i roli.
- Dziedziczenie
-
UserStore<TUser,TRole,TContext,TKey,IdentityUserClaim<TKey>,IdentityUserRole<TKey>,IdentityUserLogin<TKey>,IdentityUserToken<TKey>>UserStore<TUser,TRole,TContext,TKey>
- Dziedziczenie
-
UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim,IdentityUserPasskey<TKey>>UserStore<TUser,TRole,TContext,TKey,IdentityUserClaim<TKey>,IdentityUserRole<TKey>,IdentityUserLogin<TKey>,IdentityUserToken<TKey>,IdentityRoleClaim<TKey>>UserStore<TUser,TRole,TContext,TKey>
- Dziedziczenie
-
UserStore<TUser,TRole,TContext,TKey,IdentityUserClaim<TKey>,IdentityUserRole<TKey>,IdentityUserLogin<TKey>,IdentityUserToken<TKey>,IdentityRoleClaim<TKey>>UserStore<TUser,TRole,TContext,TKey>
- Pochodne
Konstruktory
| Nazwisko | Opis |
|---|---|
| UserStore<TUser,TRole,TContext,TKey>(TContext, IdentityErrorDescriber) |
Tworzy nowe wystąpienie klasy UserStore<TUser,TRole,TContext,TKey>. |
Właściwości
| Nazwisko | Opis |
|---|---|
| AutoSaveChanges |
Pobiera lub ustawia flagę wskazującą, czy zmiany powinny być utrwalane po wywołaniu metody CreateAsync, UpdateAsync i DeleteAsync. (Odziedziczone po UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>) |
| Context |
Pobiera kontekst bazy danych dla tego magazynu. (Odziedziczone po UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>) |
| Users |
Właściwość nawigacji dla użytkowników, które zawiera sklep. (Odziedziczone po UserStore<TUser,TRole,TContext,TKey,TUserClaim,TUserRole,TUserLogin,TUserToken,TRoleClaim>) |