Метод | Описание | |
---|---|---|
CheckDatabaseExists ( AliaSQL.Core.Model.ConnectionSettings settings ) : bool | ||
DatabaseVersion ( AliaSQL.Core.Model.ConnectionSettings settings ) : int | ||
ExecuteNonQuery ( AliaSQL.Core.Model.ConnectionSettings settings, string sql, bool includeDatabaseName = false ) : void |
Runs queries that are not specific to a database such as Drop, Create, single user mode
|
|
ExecuteNonQueryTransactional ( AliaSQL.Core.Model.ConnectionSettings settings, string sql ) : void |
Runs larger queries that may be multiline separated with GO Runs entire sql block in a single transaction that will rollback if any part of the query errors
|
|
ExecuteScalarInteger ( AliaSQL.Core.Model.ConnectionSettings settings, string sql ) : int | ||
GetExecutedScripts ( AliaSQL.Core.Model.ConnectionSettings settings ) : List |
||
GetExecutedTestDataScripts ( AliaSQL.Core.Model.ConnectionSettings settings ) : List |
||
QueryExecutor ( ) : System | ||
QueryExecutor ( IConnectionStringGenerator connectionStringGenerator ) : System | ||
ReadFirstColumnAsStringArray ( AliaSQL.Core.Model.ConnectionSettings settings, string sql ) : string[] | ||
ScriptSupportsTransactions ( string sql ) : bool |
Some commands are not allowed inside transactions http://msdn.microsoft.com/en-us/library/ms191544.aspx
|
Метод | Описание | |
---|---|---|
SplitSqlStatements ( string sqlScript ) : IEnumerable |
public CheckDatabaseExists ( AliaSQL.Core.Model.ConnectionSettings settings ) : bool | ||
settings | AliaSQL.Core.Model.ConnectionSettings | |
Результат | bool |
public DatabaseVersion ( AliaSQL.Core.Model.ConnectionSettings settings ) : int | ||
settings | AliaSQL.Core.Model.ConnectionSettings | |
Результат | int |
public ExecuteNonQuery ( AliaSQL.Core.Model.ConnectionSettings settings, string sql, bool includeDatabaseName = false ) : void | ||
settings | AliaSQL.Core.Model.ConnectionSettings | |
sql | string | |
includeDatabaseName | bool | |
Результат | void |
public ExecuteNonQueryTransactional ( AliaSQL.Core.Model.ConnectionSettings settings, string sql ) : void | ||
settings | AliaSQL.Core.Model.ConnectionSettings | |
sql | string | |
Результат | void |
public ExecuteScalarInteger ( AliaSQL.Core.Model.ConnectionSettings settings, string sql ) : int | ||
settings | AliaSQL.Core.Model.ConnectionSettings | |
sql | string | |
Результат | int |
public GetExecutedScripts ( AliaSQL.Core.Model.ConnectionSettings settings ) : List |
||
settings | AliaSQL.Core.Model.ConnectionSettings | |
Результат | List |
public GetExecutedTestDataScripts ( AliaSQL.Core.Model.ConnectionSettings settings ) : List |
||
settings | AliaSQL.Core.Model.ConnectionSettings | |
Результат | List |
public QueryExecutor ( IConnectionStringGenerator connectionStringGenerator ) : System | ||
connectionStringGenerator | IConnectionStringGenerator | |
Результат | System |
public ReadFirstColumnAsStringArray ( AliaSQL.Core.Model.ConnectionSettings settings, string sql ) : string[] | ||
settings | AliaSQL.Core.Model.ConnectionSettings | |
sql | string | |
Результат | string[] |
public ScriptSupportsTransactions ( string sql ) : bool | ||
sql | string | |
Результат | bool |