C# Class EA.Iws.DataAccess.ContextBase

Inheritance: DbContext
Mostrar archivo Open project: EnvironmentAgency/prsd-iws

Protected Properties

Property Type Description
Dispatcher IEventDispatcher
UserContext IUserContext

Public Methods

Method Description
ContextBase ( IUserContext userContext, IEventDispatcher dispatcher ) : System.Data.Entity
DeleteOnCommit ( Entity entity ) : void
SaveChanges ( ) : int
SaveChangesAsync ( CancellationToken cancellationToken ) : Task

Protected Methods

Method Description
OnModelCreating ( DbModelBuilder modelBuilder ) : void

Method Details

ContextBase() public method

public ContextBase ( IUserContext userContext, IEventDispatcher dispatcher ) : System.Data.Entity
userContext IUserContext
dispatcher IEventDispatcher
return System.Data.Entity

DeleteOnCommit() public method

public DeleteOnCommit ( Entity entity ) : void
entity Entity
return void

OnModelCreating() protected method

protected OnModelCreating ( DbModelBuilder modelBuilder ) : void
modelBuilder DbModelBuilder
return void

SaveChanges() public method

public SaveChanges ( ) : int
return int

SaveChangesAsync() public method

public SaveChangesAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
return Task

Property Details

Dispatcher protected_oe property

protected IEventDispatcher Dispatcher
return IEventDispatcher

UserContext protected_oe property

protected IUserContext UserContext
return IUserContext