Table of Contents

Class IdentityDataConnection<TUser, TRole, TKey, TUserClaim, TUserRole, TUserLogin, TRoleClaim, TUserToken>

Namespace
LinqToDB.Identity
Assembly
LinqToDB.Identity.dll

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 IDataProvider

Data provider object, see IDataProvider

connection DbConnection

Connection object DbConnection

IdentityDataConnection(IDataProvider, DbTransaction)

Constructor

public IdentityDataConnection(IDataProvider dataProvider, DbTransaction transaction)

Parameters

dataProvider IDataProvider

Data provider object, see IDataProvider

transaction DbTransaction

Transdaction object DbTransaction

IdentityDataConnection(IDataProvider, string)

Constructor

public IdentityDataConnection(IDataProvider dataProvider, string connectionString)

Parameters

dataProvider IDataProvider

Data provider object, see IDataProvider

connectionString string

Connection string

IdentityDataConnection(string)

Constructor

public IdentityDataConnection(string configurationString)

Parameters

configurationString string

Connection string

IdentityDataConnection(string, string)

Constructor

public IdentityDataConnection(string providerName, string connectionString)

Parameters

providerName string

Data provider name

connectionString string

Connection string

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>