C# Class Raven.Client.Extensions.MultiTenancyExtensions

Extension methods to create mutli tenants databases
ファイルを表示 Open project: robashton/ravendb

Public Methods

Method Description
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

Method Details

CreateDatabase() public static method

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

CreateDatabaseAsync() public static method

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
return System.Threading.Tasks.Task

EnsureDatabaseExists() public static method

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
return void

EnsureDatabaseExistsAsync() public static method

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
return System.Threading.Tasks.Task