C# 클래스 Raven.Client.Extensions.MultiTenancyExtensions

Extension methods to create mutli tenants databases
파일 보기 프로젝트 열기: robashton/ravendb

공개 메소드들

메소드 설명
CreateDatabase ( this self, Raven.Abstractions.Data.DatabaseDocument databaseDocument ) : void
CreateDatabaseAsync ( this self, Raven.Abstractions.Data.DatabaseDocument databaseDocument, bool ignoreFailures = false ) : System.Threading.Tasks.Task
EnsureDatabaseExists ( this self, string name, bool ignoreFailures = false ) : void

Ensures that the database exists, creating it if needed

This operation happens _outside_ of any transaction

EnsureDatabaseExistsAsync ( this self, string name, bool ignoreFailures = false ) : System.Threading.Tasks.Task

Ensures that the database exists, creating it if needed

메소드 상세

CreateDatabase() 공개 정적인 메소드

public static CreateDatabase ( this self, Raven.Abstractions.Data.DatabaseDocument databaseDocument ) : void
self this
databaseDocument Raven.Abstractions.Data.DatabaseDocument
리턴 void

CreateDatabaseAsync() 공개 정적인 메소드

public static CreateDatabaseAsync ( this self, Raven.Abstractions.Data.DatabaseDocument databaseDocument, bool ignoreFailures = false ) : System.Threading.Tasks.Task
self this
databaseDocument Raven.Abstractions.Data.DatabaseDocument
ignoreFailures bool
리턴 System.Threading.Tasks.Task

EnsureDatabaseExists() 공개 정적인 메소드

Ensures that the database exists, creating it if needed
This operation happens _outside_ of any transaction
public static EnsureDatabaseExists ( this self, string name, bool ignoreFailures = false ) : void
self this
name string
ignoreFailures bool
리턴 void

EnsureDatabaseExistsAsync() 공개 정적인 메소드

Ensures that the database exists, creating it if needed
public static EnsureDatabaseExistsAsync ( this self, string name, bool ignoreFailures = false ) : System.Threading.Tasks.Task
self this
name string
ignoreFailures bool
리턴 System.Threading.Tasks.Task