C# 클래스 Unosquare.Labs.EntityFramework.EnterpriseExtensions.BusinessDbContext

Creates a new DbContext with support to run BusinessControllers
상속: DbContext, IBusinessDbContext
파일 보기 프로젝트 열기: unosquare/ef-enterpriseextensions

공개 메소드들

메소드 설명
AddController ( IBusinessRulesController controller ) : void

Adds a new BusinessController to the DbContext

ContainsController ( IBusinessRulesController controller ) : bool

Checks if a BusinessController exists

RemoveController ( IBusinessRulesController controller ) : void

Removes a new BusinessController to the DbContext

SaveChanges ( ) : int

Save Changes and run all the business controllers

SaveChangesAsync ( ) : Task

Save Changes Async and run all the business controllers

SaveChangesAsync ( CancellationToken cancellationToken ) : Task

Save Changes Async and run all the business controllers

보호된 메소드들

메소드 설명
BusinessDbContext ( ) : System.Collections.Generic

Instances a new DbContext

BusinessDbContext ( DbConnection dbConnection, bool contextOwnsConnection ) : System.Collections.Generic

Instances a new DbContext with a DbConnection

BusinessDbContext ( string connectionName ) : System.Collections.Generic

Instances a new DbContext with a connection name

비공개 메소드들

메소드 설명
RunBusinessRules ( ) : void

메소드 상세

AddController() 공개 메소드

Adds a new BusinessController to the DbContext
public AddController ( IBusinessRulesController controller ) : void
controller IBusinessRulesController
리턴 void

BusinessDbContext() 보호된 메소드

Instances a new DbContext
protected BusinessDbContext ( ) : System.Collections.Generic
리턴 System.Collections.Generic

BusinessDbContext() 보호된 메소드

Instances a new DbContext with a DbConnection
protected BusinessDbContext ( DbConnection dbConnection, bool contextOwnsConnection ) : System.Collections.Generic
dbConnection System.Data.Common.DbConnection
contextOwnsConnection bool
리턴 System.Collections.Generic

BusinessDbContext() 보호된 메소드

Instances a new DbContext with a connection name
protected BusinessDbContext ( string connectionName ) : System.Collections.Generic
connectionName string
리턴 System.Collections.Generic

ContainsController() 공개 메소드

Checks if a BusinessController exists
public ContainsController ( IBusinessRulesController controller ) : bool
controller IBusinessRulesController
리턴 bool

RemoveController() 공개 메소드

Removes a new BusinessController to the DbContext
public RemoveController ( IBusinessRulesController controller ) : void
controller IBusinessRulesController
리턴 void

SaveChanges() 공개 메소드

Save Changes and run all the business controllers
public SaveChanges ( ) : int
리턴 int

SaveChangesAsync() 공개 메소드

Save Changes Async and run all the business controllers
public SaveChangesAsync ( ) : Task
리턴 Task

SaveChangesAsync() 공개 메소드

Save Changes Async and run all the business controllers
public SaveChangesAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
리턴 Task