Class IdentityDataConnection<TUser, TRole, TKey, TUserClaim, TUserRole, TUserLogin, TRoleClaim, TUserToken>
Base class for the LinqToDB database context used for identity.
public class IdentityDataConnection<TUser, TRole, TKey, TUserClaim, TUserRole, TUserLogin, TRoleClaim, TUserToken> : DataConnection, IDataContext, IConfigurationID, IDisposable, IAsyncDisposable, ICloneable, IInterceptable<ICommandInterceptor>, IInterceptable<IConnectionInterceptor>, IInterceptable<IDataContextInterceptor>, IInterceptable<IEntityServiceInterceptor>, IInterceptable<IUnwrapDataObjectInterceptor>, IInterceptable where TUser : class, IIdentityUser<TKey> where TRole : class, IIdentityRole<TKey> where TKey : IEquatable<TKey> where TUserClaim : class, IIdentityUserClaim<TKey> where TUserRole : class, IIdentityUserRole<TKey> where TUserLogin : class, IIdentityUserLogin<TKey> where TRoleClaim : class, IIdentityRoleClaim<TKey> where TUserToken : class, IIdentityUserToken<TKey>
Type Parameters
TUserThe type of user objects.
TRoleThe type of role objects.
TKeyThe type of the primary key for users and roles.
TUserClaimThe type of the user claim object.
TUserRoleThe type of the user role object.
TUserLoginThe type of the user login object.
TRoleClaimThe type of the role claim object.
TUserTokenThe type of the user token object.
- Inheritance
-
IdentityDataConnection<TUser, TRole, TKey, TUserClaim, TUserRole, TUserLogin, TRoleClaim, TUserToken>
- Implements
- Derived
- Inherited Members
Constructors
IdentityDataConnection()
Default constructor
public IdentityDataConnection()
IdentityDataConnection(IDataProvider, DbConnection)
Constructor
public IdentityDataConnection(IDataProvider dataProvider, DbConnection connection)
Parameters
dataProviderIDataProviderData provider object, see IDataProvider
connectionDbConnectionConnection object DbConnection
IdentityDataConnection(IDataProvider, DbTransaction)
Constructor
public IdentityDataConnection(IDataProvider dataProvider, DbTransaction transaction)
Parameters
dataProviderIDataProviderData provider object, see IDataProvider
transactionDbTransactionTransdaction object DbTransaction
IdentityDataConnection(IDataProvider, string)
Constructor
public IdentityDataConnection(IDataProvider dataProvider, string connectionString)
Parameters
dataProviderIDataProviderData provider object, see IDataProvider
connectionStringstringConnection string
IdentityDataConnection(string)
Constructor
public IdentityDataConnection(string configurationString)
Parameters
configurationStringstringConnection string
IdentityDataConnection(string, string)
Constructor
public IdentityDataConnection(string providerName, string connectionString)
Parameters
Properties
RoleClaims
Gets the ITable<T> of role claims.
public ITable<TRoleClaim> RoleClaims { get; }
Property Value
- ITable<TRoleClaim>
Roles
Gets the ITable<T> of roles.
public ITable<TRole> Roles { get; }
Property Value
- ITable<TRole>
UserClaims
Gets the ITable<T> of User claims.
public ITable<TUserClaim> UserClaims { get; }
Property Value
- ITable<TUserClaim>
UserLogins
Gets the ITable<T> of User logins.
public ITable<TUserLogin> UserLogins { get; }
Property Value
- ITable<TUserLogin>
UserRoles
Gets the ITable<T> of User roles.
public ITable<TUserRole> UserRoles { get; }
Property Value
- ITable<TUserRole>
UserTokens
Gets the ITable<T> of User tokens.
public ITable<TUserToken> UserTokens { get; }
Property Value
- ITable<TUserToken>
Users
Gets the ITable<T> of Users.
public ITable<TUser> Users { get; }
Property Value
- ITable<TUser>