C# Class Signum.Engine.SqlConnector

Inheritance: Connector
显示文件 Open project: signumsoftware/framework

Public Properties

Property Type Description
ComplexWhereKeywords List

Public Methods

Method Description
AllowsIndexWithWhere ( string Where ) : bool
CleanDatabase ( DatabaseName databaseName ) : void
CloneParameter ( DbParameter p ) : DbParameter
CreateConnection ( ) : DbConnection
DataSourceName ( ) : string
DatabaseName ( ) : string
ExecuteDataReaderDependency ( SqlPreCommandSimple preCommand, OnChangeEventHandler change, System.Action reconect, Action forEach, CommandType commandType ) : void
FixType ( SqlDbType &type, int &size, int &scale ) : void
ForDatabase ( Maps database ) : SqlConnector
GetSqlDbType ( DbParameter p ) : SqlDbType
HandleException ( Exception ex, SqlPreCommandSimple command ) : Exception
RollbackTransactionPoint ( DbTransaction transaction, string savePointName ) : void
SaveTransactionPoint ( DbTransaction transaction, string savePointName ) : void
ShringDatabase ( string schemaName ) : SqlPreCommand
SqlConnector ( string connectionString, Schema schema, DynamicQueryManager dqm, SqlServerVersion version ) : System

Protected Methods

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

Private Methods

Method Description
EnsureConnection ( ) : SqlConnection
NewCommand ( SqlPreCommandSimple preCommand, SqlConnection overridenConnection, CommandType commandType ) : SqlCommand
Replace ( string connectionString, DatabaseName item ) : string
ReplaceException ( Exception ex, SqlPreCommandSimple command ) : Exception

Method Details

AllowsIndexWithWhere() public method

public AllowsIndexWithWhere ( string Where ) : bool
Where string
return bool

BulkCopy() protected method

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

CleanDatabase() public method

public CleanDatabase ( DatabaseName databaseName ) : void
databaseName DatabaseName
return void

CloneParameter() public method

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

CreateConnection() public method

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

DataSourceName() public method

public DataSourceName ( ) : string
return string

DatabaseName() public method

public DatabaseName ( ) : string
return string

ExecuteDataReaderDependency() public method

public ExecuteDataReaderDependency ( SqlPreCommandSimple preCommand, OnChangeEventHandler change, System.Action reconect, Action forEach, CommandType commandType ) : void
preCommand SqlPreCommandSimple
change OnChangeEventHandler
reconect System.Action
forEach Action
commandType CommandType
return void

ExecuteDataSet() protected method

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

ExecuteDataTable() protected method

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

ExecuteNonQuery() protected method

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

ExecuteScalar() protected method

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

FixType() public method

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

ForDatabase() public method

public ForDatabase ( Maps database ) : SqlConnector
database Maps
return SqlConnector

GetSqlDbType() public method

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

HandleException() public method

public HandleException ( Exception ex, SqlPreCommandSimple command ) : Exception
ex System.Exception
command SqlPreCommandSimple
return System.Exception

RollbackTransactionPoint() public method

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

SaveTransactionPoint() public method

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

ShringDatabase() public method

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

SqlConnector() public method

public SqlConnector ( string connectionString, Schema schema, DynamicQueryManager dqm, SqlServerVersion version ) : System
connectionString string
schema Schema
dqm DynamicQueryManager
version SqlServerVersion
return System

UnsafeExecuteDataReader() protected method

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

Property Details

ComplexWhereKeywords public_oe static_oe property

public static List ComplexWhereKeywords
return List