C# Class Signum.Engine.Connector

Afficher le fichier Open project: signumsoftware/framework Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

public abstract AllowsIndexWithWhere ( string where ) : bool
where string
Résultat bool

BulkCopy() protected abstract méthode

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

CleanDatabase() public abstract méthode

public abstract CleanDatabase ( DatabaseName database ) : void
database DatabaseName
Résultat void

CloneParameter() public abstract méthode

public abstract CloneParameter ( DbParameter p ) : DbParameter
p System.Data.Common.DbParameter
Résultat System.Data.Common.DbParameter

CommandTimeoutScope() public static méthode

public static CommandTimeoutScope ( int timeoutSeconds ) : IDisposable
timeoutSeconds int
Résultat IDisposable

Connector() public méthode

public Connector ( Schema schema, DynamicQueryManager dqm ) : System
schema Schema
dqm DynamicQueryManager
Résultat System

CreateConnection() public abstract méthode

public abstract CreateConnection ( ) : DbConnection
Résultat System.Data.Common.DbConnection

DataSourceName() public abstract méthode

public abstract DataSourceName ( ) : string
Résultat string

DatabaseName() public abstract méthode

public abstract DatabaseName ( ) : string
Résultat string

ExecuteDataSet() protected abstract méthode

protected abstract ExecuteDataSet ( SqlPreCommandSimple sqlPreCommandSimple, CommandType commandType ) : DataSet
sqlPreCommandSimple SqlPreCommandSimple
commandType CommandType
Résultat System.Data.DataSet

ExecuteDataTable() protected abstract méthode

protected abstract ExecuteDataTable ( SqlPreCommandSimple command, CommandType commandType ) : DataTable
command SqlPreCommandSimple
commandType CommandType
Résultat System.Data.DataTable

ExecuteNonQuery() protected abstract méthode

protected abstract ExecuteNonQuery ( SqlPreCommandSimple preCommand, CommandType commandType ) : int
preCommand SqlPreCommandSimple
commandType CommandType
Résultat int

ExecuteScalar() protected abstract méthode

protected abstract ExecuteScalar ( SqlPreCommandSimple preCommand, CommandType commandType ) : object
preCommand SqlPreCommandSimple
commandType CommandType
Résultat object

ExtractCatalogPostfix() public static méthode

public static ExtractCatalogPostfix ( string &connectionString, string catalogPostfix ) : string
connectionString string
catalogPostfix string
Résultat string

FixType() public abstract méthode

public abstract FixType ( SqlDbType &type, int &size, int &scale ) : void
type SqlDbType
size int
scale int
Résultat void

GetSqlDbType() public abstract méthode

public abstract GetSqlDbType ( DbParameter p ) : SqlDbType
p System.Data.Common.DbParameter
Résultat SqlDbType

Log() protected static méthode

protected static Log ( SqlPreCommandSimple pcs ) : void
pcs SqlPreCommandSimple
Résultat void

Override() public static méthode

public static Override ( Connector connection ) : IDisposable
connection Connector
Résultat IDisposable

RollbackTransactionPoint() public abstract méthode

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

SaveTransactionPoint() public abstract méthode

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

ShringDatabase() public abstract méthode

public abstract ShringDatabase ( string schemaName ) : SqlPreCommand
schemaName string
Résultat SqlPreCommand

TryExtractDatabaseNameWithPostfix() public static méthode

public static TryExtractDatabaseNameWithPostfix ( string &connectionString, string catalogPostfix ) : string
connectionString string
catalogPostfix string
Résultat string

UnsafeExecuteDataReader() protected abstract méthode

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