C# Class CsDO.Lib.MockDriver.MockDriver

Inheritance: IDataBase
Datei anzeigen Open project: MonoBrasil/CsDO

Public Methods

Method Description
MockDriver ( ) : System
MockDriver ( string connectionString ) : System
addColumn ( string tableName, string columnName, Type dataType ) : DataColumn
addColumn ( string tableName, string columnName, Type dataType, bool b, bool b2 ) : DataColumn
addRow ( string tableName, DataRow row ) : void
addTable ( string name ) : DataTable
close ( ) : void
getCommand ( String sql ) : DbCommand
getConnection ( ) : DbConnection
getDataAdapter ( DbCommand command ) : DbDataAdapter
getParameter ( ) : DbParameter
getParameter ( string name, DbType type, int size ) : DbParameter
getPreviousCommand ( ) : MockCommand
getSchema ( ) : DataTable
getSchema ( string collectionName ) : DataTable
getSchema ( string collectionName, string restrictions ) : DataTable
getSystemCommand ( String sql ) : DbCommand
getSystemConnection ( ) : DbConnection
newRow ( string tableName ) : DataRow
open ( string URL ) : void

Protected Methods

Method Description
getUrl ( ) : string
getUrlSys ( ) : string

Method Details

MockDriver() public method

public MockDriver ( ) : System
return System

MockDriver() public method

public MockDriver ( string connectionString ) : System
connectionString string
return System

addColumn() public method

public addColumn ( string tableName, string columnName, Type dataType ) : DataColumn
tableName string
columnName string
dataType System.Type
return System.Data.DataColumn

addColumn() public method

public addColumn ( string tableName, string columnName, Type dataType, bool b, bool b2 ) : DataColumn
tableName string
columnName string
dataType System.Type
b bool
b2 bool
return System.Data.DataColumn

addRow() public method

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

addTable() public method

public addTable ( string name ) : DataTable
name string
return System.Data.DataTable

close() public method

public close ( ) : void
return void

getCommand() public method

public getCommand ( String sql ) : DbCommand
sql String
return System.Data.Common.DbCommand

getConnection() public method

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

getDataAdapter() public method

public getDataAdapter ( DbCommand command ) : DbDataAdapter
command System.Data.Common.DbCommand
return System.Data.Common.DbDataAdapter

getParameter() public method

public getParameter ( ) : DbParameter
return System.Data.Common.DbParameter

getParameter() public method

public getParameter ( string name, DbType type, int size ) : DbParameter
name string
type DbType
size int
return System.Data.Common.DbParameter

getPreviousCommand() public method

public getPreviousCommand ( ) : MockCommand
return MockCommand

getSchema() public method

public getSchema ( ) : DataTable
return System.Data.DataTable

getSchema() public method

public getSchema ( string collectionName ) : DataTable
collectionName string
return System.Data.DataTable

getSchema() public method

public getSchema ( string collectionName, string restrictions ) : DataTable
collectionName string
restrictions string
return System.Data.DataTable

getSystemCommand() public method

public getSystemCommand ( String sql ) : DbCommand
sql String
return System.Data.Common.DbCommand

getSystemConnection() public method

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

getUrl() protected method

protected getUrl ( ) : string
return string

getUrlSys() protected method

protected getUrlSys ( ) : string
return string

newRow() public method

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

open() public method

public open ( string URL ) : void
URL string
return void