C# Класс ZocBuild.Database.Build.Build

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Build ( IDbConnection connection, IDbTransaction transaction, ILogger logger ) : System

Instantiates a build object which can execute object definition scripts.

BuildItemsAsync ( IEnumerable items ) : Task

Builds the given items on the database.

This method will first drop objects marked for Drop or DropAndCreate. It then creates or alters objects marked for Create, DropAndCreate, or Alter. If any one script fails to build, the entire transaction will be rolled back.

Приватные методы

Метод Описание
ApplyScriptsAsync ( IDictionary scriptsToDependencies, IScriptExecutor executor, Func referencerFunc, bool>.Func eligibilityFunc, Action successAction, Exception>.Action failureAction ) : System.Threading.Tasks.Task
CreateAsync ( IEnumerable items ) : System.Threading.Tasks.Task
DropAsync ( IEnumerable items ) : System.Threading.Tasks.Task

Описание методов

Build() публичный Метод

Instantiates a build object which can execute object definition scripts.
public Build ( IDbConnection connection, IDbTransaction transaction, ILogger logger ) : System
connection IDbConnection The open connection to the database.
transaction IDbTransaction The open transaction on which the scripts should be executed.
logger ILogger A logger
Результат System

BuildItemsAsync() публичный Метод

Builds the given items on the database.
This method will first drop objects marked for Drop or DropAndCreate. It then creates or alters objects marked for Create, DropAndCreate, or Alter. If any one script fails to build, the entire transaction will be rolled back.
public BuildItemsAsync ( IEnumerable items ) : Task
items IEnumerable The items to build.
Результат Task