Method | 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 |
public static BuildConnectionString ( string dbDataSource, string dbName, string dbFileName ) : string | ||
dbDataSource | string | |
dbName | string | |
dbFileName | string | |
return | string |
public static CheckLocalDB ( string connectionString ) : void | ||
connectionString | string | /// The connection string. /// |
return | void |
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. /// |
return | bool |
public static DetachDatabase ( string dbDataSource, string dbName ) : bool | ||
dbDataSource | string | /// The db data source. /// |
dbName | string | /// The db name. /// |
return | bool |
public static GetDataSourceName ( string connectionString ) : string | ||
connectionString | string | |
return | string |
public static GetDatabaseFileName ( string connectionString ) : string | ||
connectionString | string | |
return | string |
public static GetDatabaseName ( string connectionString ) : string | ||
connectionString | string | |
return | string |