C# Class Signum.Engine.Connector

ファイルを表示 Open project: signumsoftware/framework Class Usage Examples

Public Methods

Method Description
AllowsIndexWithWhere ( string where ) : bool
CleanDatabase ( DatabaseName database ) : void
CloneParameter ( DbParameter p ) : DbParameter
CommandTimeoutScope ( int timeoutSeconds ) : IDisposable
Connector ( Schema schema, DynamicQueryManager dqm ) : System
CreateConnection ( ) : DbConnection
DataSourceName ( ) : string
DatabaseName ( ) : string
ExtractCatalogPostfix ( string &connectionString, string catalogPostfix ) : string
FixType ( SqlDbType &type, int &size, int &scale ) : void
GetSqlDbType ( DbParameter p ) : SqlDbType
Override ( Connector connection ) : IDisposable
RollbackTransactionPoint ( DbTransaction Transaction, string savePointName ) : void
SaveTransactionPoint ( DbTransaction transaction, string savePointName ) : void
ShringDatabase ( string schemaName ) : SqlPreCommand
TryExtractDatabaseNameWithPostfix ( string &connectionString, string catalogPostfix ) : string

Protected Methods

Method Description
BulkCopy ( DataTable dt, ObjectName destinationTable, SqlBulkCopyOptions options, int timeout ) : void
ExecuteDataSet ( SqlPreCommandSimple sqlPreCommandSimple, CommandType commandType ) : DataSet
ExecuteDataTable ( SqlPreCommandSimple command, CommandType commandType ) : DataTable
ExecuteNonQuery ( SqlPreCommandSimple preCommand, CommandType commandType ) : int
ExecuteScalar ( SqlPreCommandSimple preCommand, CommandType commandType ) : object
Log ( SqlPreCommandSimple pcs ) : void
UnsafeExecuteDataReader ( SqlPreCommandSimple sqlPreCommandSimple, CommandType commandType ) : System.Data.Common.DbDataReader

Method Details

AllowsIndexWithWhere() public abstract method

public abstract AllowsIndexWithWhere ( string where ) : bool
where string
return bool

BulkCopy() protected abstract method

protected abstract BulkCopy ( DataTable dt, ObjectName destinationTable, SqlBulkCopyOptions options, int timeout ) : void
dt System.Data.DataTable
destinationTable ObjectName
options SqlBulkCopyOptions
timeout int
return void

CleanDatabase() public abstract method

public abstract CleanDatabase ( DatabaseName database ) : void
database DatabaseName
return void

CloneParameter() public abstract method

public abstract CloneParameter ( DbParameter p ) : DbParameter
p System.Data.Common.DbParameter
return System.Data.Common.DbParameter

CommandTimeoutScope() public static method

public static CommandTimeoutScope ( int timeoutSeconds ) : IDisposable
timeoutSeconds int
return IDisposable

Connector() public method

public Connector ( Schema schema, DynamicQueryManager dqm ) : System
schema Schema
dqm DynamicQueryManager
return System

CreateConnection() public abstract method

public abstract CreateConnection ( ) : DbConnection
return System.Data.Common.DbConnection

DataSourceName() public abstract method

public abstract DataSourceName ( ) : string
return string

DatabaseName() public abstract method

public abstract DatabaseName ( ) : string
return string

ExecuteDataSet() protected abstract method

protected abstract ExecuteDataSet ( SqlPreCommandSimple sqlPreCommandSimple, CommandType commandType ) : DataSet
sqlPreCommandSimple SqlPreCommandSimple
commandType CommandType
return System.Data.DataSet

ExecuteDataTable() protected abstract method

protected abstract ExecuteDataTable ( SqlPreCommandSimple command, CommandType commandType ) : DataTable
command SqlPreCommandSimple
commandType CommandType
return System.Data.DataTable

ExecuteNonQuery() protected abstract method

protected abstract ExecuteNonQuery ( SqlPreCommandSimple preCommand, CommandType commandType ) : int
preCommand SqlPreCommandSimple
commandType CommandType
return int

ExecuteScalar() protected abstract method

protected abstract ExecuteScalar ( SqlPreCommandSimple preCommand, CommandType commandType ) : object
preCommand SqlPreCommandSimple
commandType CommandType
return object

ExtractCatalogPostfix() public static method

public static ExtractCatalogPostfix ( string &connectionString, string catalogPostfix ) : string
connectionString string
catalogPostfix string
return string

FixType() public abstract method

public abstract FixType ( SqlDbType &type, int &size, int &scale ) : void
type SqlDbType
size int
scale int
return void

GetSqlDbType() public abstract method

public abstract GetSqlDbType ( DbParameter p ) : SqlDbType
p System.Data.Common.DbParameter
return SqlDbType

Log() protected static method

protected static Log ( SqlPreCommandSimple pcs ) : void
pcs SqlPreCommandSimple
return void

Override() public static method

public static Override ( Connector connection ) : IDisposable
connection Connector
return IDisposable

RollbackTransactionPoint() public abstract method

public abstract RollbackTransactionPoint ( DbTransaction Transaction, string savePointName ) : void
Transaction System.Data.Common.DbTransaction
savePointName string
return void

SaveTransactionPoint() public abstract method

public abstract SaveTransactionPoint ( DbTransaction transaction, string savePointName ) : void
transaction System.Data.Common.DbTransaction
savePointName string
return void

ShringDatabase() public abstract method

public abstract ShringDatabase ( string schemaName ) : SqlPreCommand
schemaName string
return SqlPreCommand

TryExtractDatabaseNameWithPostfix() public static method

public static TryExtractDatabaseNameWithPostfix ( string &connectionString, string catalogPostfix ) : string
connectionString string
catalogPostfix string
return string

UnsafeExecuteDataReader() protected abstract method

protected abstract UnsafeExecuteDataReader ( SqlPreCommandSimple sqlPreCommandSimple, CommandType commandType ) : System.Data.Common.DbDataReader
sqlPreCommandSimple SqlPreCommandSimple
commandType CommandType
return System.Data.Common.DbDataReader