C# Class CsDO.Tests.MockDriver

Inheritance: IDataBase
Mostrar archivo Open project: MonoBrasil/CsDO

Protected Properties

Property Type Description
dataset System.Data.DataSet

Public Methods

Method Description
MockDriver ( ) : System
addColumn ( string table, string name, Type type ) : void
addColumn ( string table, string name, Type type, bool unique, bool readOnly ) : void
addRow ( string table, DataRow row ) : void
addTable ( string name ) : void
clearTable ( string table ) : void
clearTables ( ) : void
getColumn ( string table, int index ) : DataColumn
getColumnCount ( string table ) : int
getColumnIndex ( string table, string name ) : int
getCommand ( String sql ) : IDbCommand
getDataAdapter ( IDbCommand command ) : IDataAdapter
getPreviousCommand ( ) : MockDbCommand
getPreviousConnection ( ) : MockDbConnection
getSystemCommand ( String sql ) : IDbCommand
newRow ( string table ) : DataRow
setPrimaryKey ( string table, string name ) : void

Protected Methods

Method Description
getConnection ( ) : IDbConnection
getSystemConnection ( ) : IDbConnection

Method Details

MockDriver() public method

public MockDriver ( ) : System
return System

addColumn() public method

public addColumn ( string table, string name, Type type ) : void
table string
name string
type System.Type
return void

addColumn() public method

public addColumn ( string table, string name, Type type, bool unique, bool readOnly ) : void
table string
name string
type System.Type
unique bool
readOnly bool
return void

addRow() public method

public addRow ( string table, DataRow row ) : void
table string
row System.Data.DataRow
return void

addTable() public method

public addTable ( string name ) : void
name string
return void

clearTable() public method

public clearTable ( string table ) : void
table string
return void

clearTables() public method

public clearTables ( ) : void
return void

getColumn() public method

public getColumn ( string table, int index ) : DataColumn
table string
index int
return System.Data.DataColumn

getColumnCount() public method

public getColumnCount ( string table ) : int
table string
return int

getColumnIndex() public method

public getColumnIndex ( string table, string name ) : int
table string
name string
return int

getCommand() public method

public getCommand ( String sql ) : IDbCommand
sql String
return IDbCommand

getConnection() protected method

protected getConnection ( ) : IDbConnection
return IDbConnection

getDataAdapter() public method

public getDataAdapter ( IDbCommand command ) : IDataAdapter
command IDbCommand
return IDataAdapter

getPreviousCommand() public method

public getPreviousCommand ( ) : MockDbCommand
return MockDbCommand

getPreviousConnection() public method

public getPreviousConnection ( ) : MockDbConnection
return MockDbConnection

getSystemCommand() public method

public getSystemCommand ( String sql ) : IDbCommand
sql String
return IDbCommand

getSystemConnection() protected method

protected getSystemConnection ( ) : IDbConnection
return IDbConnection

newRow() public method

public newRow ( string table ) : DataRow
table string
return System.Data.DataRow

setPrimaryKey() public method

public setPrimaryKey ( string table, string name ) : void
table string
name string
return void

Property Details

dataset protected_oe property

protected DataSet,System.Data dataset
return System.Data.DataSet