IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim, TRoleClaim> IdentityDbContext(Of TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim, TRoleClaim) Class

Definition

public class IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim, TRoleClaim> : IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim> where TUser : IdentityUser<TKey, TUserLogin, TUserRole, TUserClaim> where TRole : IdentityRole<TKey, TUserRole> where TUserLogin : IdentityUserLogin<TKey> where TUserRole : IdentityUserRole<TKey> where TUserClaim : IdentityUserClaim<TKey> where TRoleClaim : IdentityRoleClaim<TKey>
Public Class IdentityDbContext(Of TUser As IdentityUser(Of TKey, TUserLogin, TUserRole, TUserClaim), TRole As IdentityRole(Of TKey, TUserRole), TKey, TUserLogin As IdentityUserLogin(Of TKey), TUserRole As IdentityUserRole(Of TKey), TUserClaim As IdentityUserClaim(Of TKey), TRoleClaim As IdentityRoleClaim(Of TKey))
    Inherits IdentityDbContext(Of TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim)
Type Parameters
TUser
TRole
TKey
TUserLogin
TUserRole
TUserClaim
TRoleClaim
Inheritance
IdentityDbContext<TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim, TRoleClaim>IdentityDbContext(Of TUser, TRole, TKey, TUserLogin, TUserRole, TUserClaim, TRoleClaim)
Derived

Constructors

IdentityDbContext() IdentityDbContext()

public IdentityDbContext()
Public Sub New

IdentityDbContext(DbCompiledModel) IdentityDbContext(DbCompiledModel)

public IdentityDbContext(DbCompiledModel model)
Public Sub New(model As DbCompiledModel)
Parameters
model
DbCompiledModel DbCompiledModel

IdentityDbContext(DbConnection, DbCompiledModel, Boolean) IdentityDbContext(DbConnection, DbCompiledModel, Boolean)

public IdentityDbContext(DbConnection existingConnection, DbCompiledModel model, bool contextOwnsConnection)
Public Sub New(existingConnection As DbConnection, model As DbCompiledModel, contextOwnsConnection As Boolean)
Parameters
existingConnection
DbConnection DbConnection
model
DbCompiledModel DbCompiledModel
contextOwnsConnection
Boolean Boolean

IdentityDbContext(DbConnection, Boolean) IdentityDbContext(DbConnection, Boolean)

public IdentityDbContext(DbConnection existingConnection, bool contextOwnsConnection)
Public Sub New(existingConnection As DbConnection, contextOwnsConnection As Boolean)
Parameters
existingConnection
DbConnection DbConnection
contextOwnsConnection
Boolean Boolean

IdentityDbContext(String) IdentityDbContext(String)

public IdentityDbContext(string nameOrConnectionString)
Public Sub New(nameOrConnectionString As String)
Parameters
nameOrConnectionString
String String

IdentityDbContext(String, DbCompiledModel) IdentityDbContext(String, DbCompiledModel)

public IdentityDbContext(string nameOrConnectionString, DbCompiledModel model)
Public Sub New(nameOrConnectionString As String, model As DbCompiledModel)
Parameters
nameOrConnectionString
String String
model
DbCompiledModel DbCompiledModel

Properties

RoleClaims RoleClaims

public virtual IDbSet<TRoleClaim> RoleClaims { get; set; }
Public Overridable Property RoleClaims As IDbSet(Of TRoleClaim)
Value
IDbSet<TRoleClaim> IDbSet(Of TRoleClaim)

Methods

OnModelCreating(DbModelBuilder) OnModelCreating(DbModelBuilder)

protected override void OnModelCreating(DbModelBuilder modelBuilder)
Protected Overrides Sub OnModelCreating(modelBuilder As DbModelBuilder)
Parameters
modelBuilder
DbModelBuilder DbModelBuilder

ValidateEntity(DbEntityEntry, IDictionary) ValidateEntity(DbEntityEntry, IDictionary(Of Object, Object))

protected override DbEntityValidationResult ValidateEntity(DbEntityEntry entityEntry, IDictionary<object, object> items)
Protected Overrides Function ValidateEntity(entityEntry As DbEntityEntry, items As IDictionary(Of Object, Object)) As DbEntityValidationResult
Parameters
entityEntry
DbEntityEntry DbEntityEntry
Returns
DbEntityValidationResult DbEntityValidationResult