C# Класс CsDO.Tests.MockDriver

Наследование: IDataBase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
dataset System.Data.DataSet

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
getConnection ( ) : IDbConnection
getSystemConnection ( ) : IDbConnection

Описание методов

MockDriver() публичный Метод

public MockDriver ( ) : System
Результат System

addColumn() публичный Метод

public addColumn ( string table, string name, Type type ) : void
table string
name string
type System.Type
Результат void

addColumn() публичный Метод

public addColumn ( string table, string name, Type type, bool unique, bool readOnly ) : void
table string
name string
type System.Type
unique bool
readOnly bool
Результат void

addRow() публичный Метод

public addRow ( string table, DataRow row ) : void
table string
row System.Data.DataRow
Результат void

addTable() публичный Метод

public addTable ( string name ) : void
name string
Результат void

clearTable() публичный Метод

public clearTable ( string table ) : void
table string
Результат void

clearTables() публичный Метод

public clearTables ( ) : void
Результат void

getColumn() публичный Метод

public getColumn ( string table, int index ) : DataColumn
table string
index int
Результат System.Data.DataColumn

getColumnCount() публичный Метод

public getColumnCount ( string table ) : int
table string
Результат int

getColumnIndex() публичный Метод

public getColumnIndex ( string table, string name ) : int
table string
name string
Результат int

getCommand() публичный Метод

public getCommand ( String sql ) : IDbCommand
sql String
Результат IDbCommand

getConnection() защищенный Метод

protected getConnection ( ) : IDbConnection
Результат IDbConnection

getDataAdapter() публичный Метод

public getDataAdapter ( IDbCommand command ) : IDataAdapter
command IDbCommand
Результат IDataAdapter

getPreviousCommand() публичный Метод

public getPreviousCommand ( ) : MockDbCommand
Результат MockDbCommand

getPreviousConnection() публичный Метод

public getPreviousConnection ( ) : MockDbConnection
Результат MockDbConnection

getSystemCommand() публичный Метод

public getSystemCommand ( String sql ) : IDbCommand
sql String
Результат IDbCommand

getSystemConnection() защищенный Метод

protected getSystemConnection ( ) : IDbConnection
Результат IDbConnection

newRow() публичный Метод

public newRow ( string table ) : DataRow
table string
Результат System.Data.DataRow

setPrimaryKey() публичный Метод

public setPrimaryKey ( string table, string name ) : void
table string
name string
Результат void

Описание свойств

dataset защищенное свойство

protected DataSet,System.Data dataset
Результат System.Data.DataSet