메소드 | 설명 | |
---|---|---|
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 |