C# Класс Unosquare.Labs.EntityFramework.EnterpriseExtensions.BusinessDbContext

Creates a new DbContext with support to run BusinessControllers
Наследование: DbContext, IBusinessDbContext
Показать файл Открыть проект

Открытые методы

Метод Описание
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