메소드 | 설명 | |
---|---|---|
BeginTransaction ( ) : void |
Starts a new transaction. Specialized classes should override this function and implement custom transaction handling
|
|
CommitTransaction ( ) : void |
Commits the transaction. Specialized classes should override this function and implement custom transaction handling
|
|
CreateBinaryParameter ( string parameterName, Stream dataStream ) : IDataParameter | ||
CreateBinaryParameter ( string parameterName, byte value, int length ) : IDataParameter |
Creates database parameter for a binary value. The implementation will check if the length of the string is actually within the acceptable length. If not, a BinaryParameterTooLongException is thrown. |
|
CreateBoolParameter ( string parameterName, bool value ) : IDataParameter |
Creates a database parameter for a Boolean value.
|
|
CreateDateTimeParameter ( string parameterName, System.DateTime value ) : IDataParameter |
Creates a database parameter for a datetime value
|
|
CreateDecimalParameter ( string parameterName, decimal value ) : IDataParameter |
Creates database parameter for a decimal value.
|
|
CreateGuidParameter ( string parameterName, System.Guid value ) : IDataParameter |
Creates database parameter for a GUID value.
|
|
CreateIntParameter ( string parameterName, int value ) : IDataParameter |
Creates database parameter for an integer value.
|
|
CreateLongParameter ( string parameterName, long value ) : IDataParameter |
Creates database parameter for an 64 bit integer value.
|
|
CreateMoneyParameter ( string parameterName, decimal value ) : IDataParameter |
Creates a database parameter for a decimal value used for carrying monetary amount.
|
|
CreateStampParameter ( string parameterName, object stamp ) : IDataParameter |
Creates a database parameter for a stamp value.
|
|
CreateStringParameter ( string parameterName, string value, int length ) : IDataParameter |
Creates database parameter for a string value. The implementation will check if the length of the string is actually within the acceptable length. If not, a StringParameterTooLongException is thrown. |
|
Dispose ( ) : void |
Disposes the current instance.
|
|
ExecuteNonQuery ( string spName ) : int |
Executes a stored procedure that does not return a result.
|
|
ExecuteQuery ( |
Executes a query represendted by a Query instance
|
|
ExecuteReader ( string spName ) : IDataReader |
Executes a stored procedure that returns a single result set.
|
|
ExecuteReaderSingleRow ( string spName ) : IDataReader |
Executes a stored procedure that returns a multiple result sets. Executes a stored procedure that returns a single row.
|
|
ExecuteScalar ( string spName ) : object |
Executes a stored procedure that returns a single value.
|
|
ExecuteSqlNonQuery ( string sql ) : int |
Executes an sql statement that does not return a result.
|
|
ExecuteSqlReader ( string sql ) : IDataReader |
Executes an SQL statement that returns an IDataReader
|
|
ExecuteSqlReaderSingleRow ( string sql ) : IDataReader |
Executes an SQL statement that returns a single row.
|
|
ExecuteSqlScalar ( string sql ) : object |
Executes an SQL text statement that returns a single value.
|
|
RollbackTransaction ( ) : void |
Rolls back the transaction. Specialized classes should override this function and implement custom transaction handling
|
메소드 | 설명 | |
---|---|---|
AssertNotDisposed ( ) : void |
Verifies that the object has not been disposed.
|
|
CreateCommand ( ) : IDbCommand |
Template function for creating a command object. The DataTool class will call this internally when executing a query |
|
Dispose ( bool disposing ) : void |
Template function for disposing resources.
|
|
GetConnection ( ) : IDbConnection |
Template function for getting a connection object. The DataTool class will call this internally when executing a query |
|
GetTransaction ( ) : IDbTransaction |
Template function for getting a transaction The DataTool class will call this internally when executing a query |
메소드 | 설명 | |
---|---|---|
ExecuteNonQuery ( string commandText, CommandType commandType ) : int | ||
ExecuteReader ( string sql, CommandType commandType, CommandBehavior behavior ) : IDataReader | ||
ExecuteScalar ( string commandText, CommandType commandType ) : object |
public CreateBinaryParameter ( string parameterName, Stream dataStream ) : IDataParameter | ||
parameterName | string | |
dataStream | Stream | |
리턴 | IDataParameter |
public abstract CreateBinaryParameter ( string parameterName, byte value, int length ) : IDataParameter | ||
parameterName | string | /// The name of the parameter. /// |
value | byte | /// The value of the parameter /// |
length | int | /// The length of the parameter as it is specified by the stored procedure. /// |
리턴 | IDataParameter |
public abstract CreateBoolParameter ( string parameterName, bool value ) : IDataParameter | ||
parameterName | string | /// The name of the parameter. /// |
value | bool | /// The value of the parameter /// |
리턴 | IDataParameter |
public abstract CreateDateTimeParameter ( string parameterName, System.DateTime value ) : IDataParameter | ||
parameterName | string | /// The name of the parameter. /// |
value | System.DateTime | /// The value of the parameter /// |
리턴 | IDataParameter |
public abstract CreateDecimalParameter ( string parameterName, decimal value ) : IDataParameter | ||
parameterName | string | /// The name of the parameter. /// |
value | decimal | /// The value of the parameter /// |
리턴 | IDataParameter |
public abstract CreateGuidParameter ( string parameterName, System.Guid value ) : IDataParameter | ||
parameterName | string | /// The name of the parameter. /// |
value | System.Guid | /// The value of the parameter /// |
리턴 | IDataParameter |
public abstract CreateIntParameter ( string parameterName, int value ) : IDataParameter | ||
parameterName | string | /// The name of the parameter. /// |
value | int | /// The value of the parameter /// |
리턴 | IDataParameter |
public abstract CreateLongParameter ( string parameterName, long value ) : IDataParameter | ||
parameterName | string | /// The name of the parameter. /// |
value | long | /// The value of the parameter /// |
리턴 | IDataParameter |
public abstract CreateMoneyParameter ( string parameterName, decimal value ) : IDataParameter | ||
parameterName | string | /// The name of the parameter. /// |
value | decimal | /// The value of the parameter /// |
리턴 | IDataParameter |
public abstract CreateStampParameter ( string parameterName, object stamp ) : IDataParameter | ||
parameterName | string | /// The name of the parameter. /// |
stamp | object | /// The value of the parameter /// |
리턴 | IDataParameter |
public abstract CreateStringParameter ( string parameterName, string value, int length ) : IDataParameter | ||
parameterName | string | /// The name of the parameter. /// |
value | string | /// The value of the parameter /// |
length | int | /// The length of the parameter as it is specified by the stored procedure. /// |
리턴 | IDataParameter |
protected Dispose ( bool disposing ) : void | ||
disposing | bool |
/// Boolean value indicating if we are calling from dispose or the finalizer.
/// |
리턴 | void |
public ExecuteNonQuery ( string spName ) : int | ||
spName | string | /// Name of the stored procedure to execute. /// |
리턴 | int |
public ExecuteQuery ( |
||
query | ||
리턴 | IDataReader |
public ExecuteReader ( string spName ) : IDataReader | ||
spName | string | /// Name of the stored procedure to execute. /// |
리턴 | IDataReader |
public ExecuteReaderSingleRow ( string spName ) : IDataReader | ||
spName | string | ///// Name of the stored procedure to execute. ///// |
리턴 | IDataReader |
public ExecuteScalar ( string spName ) : object | ||
spName | string | /// Name of the stored procedure to execute. /// |
리턴 | object |
public ExecuteSqlNonQuery ( string sql ) : int | ||
sql | string | /// The SQL statement to execute /// |
리턴 | int |
public ExecuteSqlReader ( string sql ) : IDataReader | ||
sql | string | |
리턴 | IDataReader |
public ExecuteSqlReaderSingleRow ( string sql ) : IDataReader | ||
sql | string | |
리턴 | IDataReader |
protected abstract GetTransaction ( ) : IDbTransaction | ||
리턴 | IDbTransaction |