C# Class Prizm.DatabaseMigrator.Utils

Afficher le fichier Open project: AleksMorozova/prizm

Méthodes publiques

Méthode Description
BuildConnectionString ( string dbDataSource, string dbName, string dbFileName ) : string
CheckLocalDB ( string connectionString ) : void

The check local db.

CreateDatabase ( string dbDataSource, string dbName, string dbFileName ) : bool

Create new database.

DetachDatabase ( string dbDataSource, string dbName ) : bool

Detach database.

GetDataSourceName ( string connectionString ) : string
GetDatabaseFileName ( string connectionString ) : string
GetDatabaseName ( string connectionString ) : string

Method Details

BuildConnectionString() public static méthode

public static BuildConnectionString ( string dbDataSource, string dbName, string dbFileName ) : string
dbDataSource string
dbName string
dbFileName string
Résultat string

CheckLocalDB() public static méthode

The check local db.
public static CheckLocalDB ( string connectionString ) : void
connectionString string /// The connection string. ///
Résultat void

CreateDatabase() public static méthode

Create new database.
public static CreateDatabase ( string dbDataSource, string dbName, string dbFileName ) : bool
dbDataSource string /// The db data source. ///
dbName string /// The db name. ///
dbFileName string /// The db file name. ///
Résultat bool

DetachDatabase() public static méthode

Detach database.
public static DetachDatabase ( string dbDataSource, string dbName ) : bool
dbDataSource string /// The db data source. ///
dbName string /// The db name. ///
Résultat bool

GetDataSourceName() public static méthode

public static GetDataSourceName ( string connectionString ) : string
connectionString string
Résultat string

GetDatabaseFileName() public static méthode

public static GetDatabaseFileName ( string connectionString ) : string
connectionString string
Résultat string

GetDatabaseName() public static méthode

public static GetDatabaseName ( string connectionString ) : string
connectionString string
Résultat string