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
TUser
The type of user objects.
TRole
The type of role objects.
TKey
The type of the primary key for users and roles.
TUserClaim
The type of the user claim object.
TUserRole
The type of the user role object.
TUserLogin
The type of the user login object.
TRoleClaim
The type of the role claim object.
TUserToken
The 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
dataProvider
IDataProviderData provider object, see IDataProvider
connection
DbConnectionConnection object DbConnection
IdentityDataConnection(IDataProvider, DbTransaction)
Constructor
public IdentityDataConnection(IDataProvider dataProvider, DbTransaction transaction)
Parameters
dataProvider
IDataProviderData provider object, see IDataProvider
transaction
DbTransactionTransdaction object DbTransaction
IdentityDataConnection(IDataProvider, string)
Constructor
public IdentityDataConnection(IDataProvider dataProvider, string connectionString)
Parameters
dataProvider
IDataProviderData provider object, see IDataProvider
connectionString
stringConnection string
IdentityDataConnection(string)
Constructor
public IdentityDataConnection(string configurationString)
Parameters
configurationString
stringConnection 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>