C# Class Simple.Migrator.Providers.NoOpTransformationProvider

No Op (Null Object Pattern) implementation of the ITransformationProvider
Inheritance: ITransformationProvider
Datei anzeigen Open project: juanplopes/simple

Public Properties

Property Type Description
Instance NoOpTransformationProvider

Public Methods

Method Description
AddCheckConstraint ( string name, string table, string checkSql ) : void
AddColumn ( string table, Column column ) : void
AddColumn ( string table, string sqlColumn ) : void
AddColumn ( string table, string column, DbType type ) : void
AddColumn ( string table, string column, DbType type, ColumnProperty property ) : void
AddColumn ( string table, string column, DbType type, int size ) : void
AddColumn ( string table, string column, DbType type, int size, ColumnProperty property ) : void
AddColumn ( string table, string column, DbType type, int size, ColumnProperty property, object defaultValue ) : void
AddColumn ( string table, string column, DbType type, object defaultValue ) : void
AddForeignKey ( string name, string primaryTable, string primaryColumn, string refTable, string refColumn ) : void
AddForeignKey ( string name, string primaryTable, string primaryColumn, string refTable, string refColumn, Simple.Migrator.Framework.ForeignKeyConstraint constraint ) : void
AddIndex ( string name, string table ) : void
AddPrimaryKey ( string name, string table ) : void
AddTable ( string name ) : void
AddTable ( string name, string engine ) : void
AddUniqueConstraint ( string name, string table ) : void
BeginTransaction ( ) : void
ChangeColumn ( string table, Column column ) : void
ColumnExists ( string table, string column ) : bool
Commit ( ) : void
ConstraintExists ( string table, string name ) : bool
Delete ( string table, string columns, string columnValues ) : int
Dispose ( ) : void
ExecuteNonQuery ( string sql ) : int
ExecuteQuery ( string sql ) : IDataReader
ExecuteScalar ( string sql ) : object
GenerateForeignKey ( string primaryTable, string refTable ) : void
GenerateForeignKey ( string primaryTable, string refTable, Simple.Migrator.Framework.ForeignKeyConstraint constraint ) : void
GenerateForeignKey ( string primaryTable, string primaryColumn, string refTable, string refColumn ) : void
GenerateForeignKey ( string primaryTable, string primaryColumn, string refTable, string refColumn, Simple.Migrator.Framework.ForeignKeyConstraint constraint ) : void
GetColumnByName ( string table, string column ) : Column
GetColumns ( string table ) : Column[]
GetCommand ( ) : IDbCommand
GetTables ( ) : string[]
Insert ( string table, string columns, string columnValues ) : int
MigrationApplied ( long version ) : void
MigrationUnApplied ( long version ) : void
PrimaryKeyExists ( string table, string name ) : bool
RemoveColumn ( string table, string column ) : void
RemoveConstraint ( string table, string name ) : void
RemoveForeignKey ( string table, string name ) : void
RemoveIndex ( string name, string table ) : void
RemoveTable ( string name ) : void
RenameColumn ( string tableName, string oldColumnName, string newColumnName ) : void
RenameTable ( string oldName, string newName ) : void
Rollback ( ) : void
SchemaInfoName ( string schemainfoname ) : void
Select ( string what, string from ) : IDataReader
Select ( string what, string from, string where ) : IDataReader
Select ( string what, string from, string where, string orderBy ) : IDataReader
SelectScalar ( string what, string from ) : object
SelectScalar ( string what, string from, string where ) : object
SelectScalar ( string what, string from, string where, string orderBy ) : object
TableExists ( string table ) : bool
Update ( string table, string columns, string columnValues ) : int
Update ( string table, string columns, string columnValues, string where ) : int
this ( string provider ) : ITransformationProvider

Protected Methods

Method Description
CreateSchemaInfoTable ( ) : void

Private Methods

Method Description
NoOpTransformationProvider ( ) : System.Collections.Generic

Method Details

AddCheckConstraint() public method

public AddCheckConstraint ( string name, string table, string checkSql ) : void
name string
table string
checkSql string
return void

AddColumn() public method

public AddColumn ( string table, Column column ) : void
table string
column Column
return void

AddColumn() public method

public AddColumn ( string table, string sqlColumn ) : void
table string
sqlColumn string
return void

AddColumn() public method

public AddColumn ( string table, string column, DbType type ) : void
table string
column string
type DbType
return void

AddColumn() public method

public AddColumn ( string table, string column, DbType type, ColumnProperty property ) : void
table string
column string
type DbType
property ColumnProperty
return void

AddColumn() public method

public AddColumn ( string table, string column, DbType type, int size ) : void
table string
column string
type DbType
size int
return void

AddColumn() public method

public AddColumn ( string table, string column, DbType type, int size, ColumnProperty property ) : void
table string
column string
type DbType
size int
property ColumnProperty
return void

AddColumn() public method

public AddColumn ( string table, string column, DbType type, int size, ColumnProperty property, object defaultValue ) : void
table string
column string
type DbType
size int
property ColumnProperty
defaultValue object
return void

AddColumn() public method

public AddColumn ( string table, string column, DbType type, object defaultValue ) : void
table string
column string
type DbType
defaultValue object
return void

AddForeignKey() public method

public AddForeignKey ( string name, string primaryTable, string primaryColumn, string refTable, string refColumn ) : void
name string
primaryTable string
primaryColumn string
refTable string
refColumn string
return void

AddForeignKey() public method

public AddForeignKey ( string name, string primaryTable, string primaryColumn, string refTable, string refColumn, Simple.Migrator.Framework.ForeignKeyConstraint constraint ) : void
name string
primaryTable string
primaryColumn string
refTable string
refColumn string
constraint Simple.Migrator.Framework.ForeignKeyConstraint
return void

AddIndex() public method

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

AddPrimaryKey() public method

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

AddTable() public method

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

AddTable() public method

public AddTable ( string name, string engine ) : void
name string
engine string
return void

AddUniqueConstraint() public method

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

BeginTransaction() public method

public BeginTransaction ( ) : void
return void

ChangeColumn() public method

public ChangeColumn ( string table, Column column ) : void
table string
column Column
return void

ColumnExists() public method

public ColumnExists ( string table, string column ) : bool
table string
column string
return bool

Commit() public method

public Commit ( ) : void
return void

ConstraintExists() public method

public ConstraintExists ( string table, string name ) : bool
table string
name string
return bool

CreateSchemaInfoTable() protected method

protected CreateSchemaInfoTable ( ) : void
return void

Delete() public method

public Delete ( string table, string columns, string columnValues ) : int
table string
columns string
columnValues string
return int

Dispose() public method

public Dispose ( ) : void
return void

ExecuteNonQuery() public method

public ExecuteNonQuery ( string sql ) : int
sql string
return int

ExecuteQuery() public method

public ExecuteQuery ( string sql ) : IDataReader
sql string
return IDataReader

ExecuteScalar() public method

public ExecuteScalar ( string sql ) : object
sql string
return object

GenerateForeignKey() public method

public GenerateForeignKey ( string primaryTable, string refTable ) : void
primaryTable string
refTable string
return void

GenerateForeignKey() public method

public GenerateForeignKey ( string primaryTable, string refTable, Simple.Migrator.Framework.ForeignKeyConstraint constraint ) : void
primaryTable string
refTable string
constraint Simple.Migrator.Framework.ForeignKeyConstraint
return void

GenerateForeignKey() public method

public GenerateForeignKey ( string primaryTable, string primaryColumn, string refTable, string refColumn ) : void
primaryTable string
primaryColumn string
refTable string
refColumn string
return void

GenerateForeignKey() public method

public GenerateForeignKey ( string primaryTable, string primaryColumn, string refTable, string refColumn, Simple.Migrator.Framework.ForeignKeyConstraint constraint ) : void
primaryTable string
primaryColumn string
refTable string
refColumn string
constraint Simple.Migrator.Framework.ForeignKeyConstraint
return void

GetColumnByName() public method

public GetColumnByName ( string table, string column ) : Column
table string
column string
return Column

GetColumns() public method

public GetColumns ( string table ) : Column[]
table string
return Column[]

GetCommand() public method

public GetCommand ( ) : IDbCommand
return IDbCommand

GetTables() public method

public GetTables ( ) : string[]
return string[]

Insert() public method

public Insert ( string table, string columns, string columnValues ) : int
table string
columns string
columnValues string
return int

MigrationApplied() public method

public MigrationApplied ( long version ) : void
version long
return void

MigrationUnApplied() public method

public MigrationUnApplied ( long version ) : void
version long
return void

PrimaryKeyExists() public method

public PrimaryKeyExists ( string table, string name ) : bool
table string
name string
return bool

RemoveColumn() public method

public RemoveColumn ( string table, string column ) : void
table string
column string
return void

RemoveConstraint() public method

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

RemoveForeignKey() public method

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

RemoveIndex() public method

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

RemoveTable() public method

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

RenameColumn() public method

public RenameColumn ( string tableName, string oldColumnName, string newColumnName ) : void
tableName string
oldColumnName string
newColumnName string
return void

RenameTable() public method

public RenameTable ( string oldName, string newName ) : void
oldName string
newName string
return void

Rollback() public method

public Rollback ( ) : void
return void

SchemaInfoName() public method

public SchemaInfoName ( string schemainfoname ) : void
schemainfoname string
return void

Select() public method

public Select ( string what, string from ) : IDataReader
what string
from string
return IDataReader

Select() public method

public Select ( string what, string from, string where ) : IDataReader
what string
from string
where string
return IDataReader

Select() public method

public Select ( string what, string from, string where, string orderBy ) : IDataReader
what string
from string
where string
orderBy string
return IDataReader

SelectScalar() public method

public SelectScalar ( string what, string from ) : object
what string
from string
return object

SelectScalar() public method

public SelectScalar ( string what, string from, string where ) : object
what string
from string
where string
return object

SelectScalar() public method

public SelectScalar ( string what, string from, string where, string orderBy ) : object
what string
from string
where string
orderBy string
return object

TableExists() public method

public TableExists ( string table ) : bool
table string
return bool

Update() public method

public Update ( string table, string columns, string columnValues ) : int
table string
columns string
columnValues string
return int

Update() public method

public Update ( string table, string columns, string columnValues, string where ) : int
table string
columns string
columnValues string
where string
return int

this() public method

public this ( string provider ) : ITransformationProvider
provider string
return ITransformationProvider

Property Details

Instance public_oe static_oe property

public static NoOpTransformationProvider,Simple.Migrator.Providers Instance
return NoOpTransformationProvider