C# 클래스 ZocBuild.Database.Build.Build

파일 보기 프로젝트 열기: Zocdoc/ZocBuild.Database 1 사용 예제들

공개 메소드들

메소드 설명
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