Property | Type | Description | |
---|---|---|---|
ADD_COLUMN | string | ||
ALTER_COLUMN | string | ||
CREATE_TABLE | string | ||
DROP_COLUMN | string | ||
DROP_TABLE | string | ||
UPDATE_DEFAULTS | string |
Method | Description | |
---|---|---|
BuildAddColumnStatement ( string tableName, IColumn column ) : string |
Adds the column.
|
|
BuildAlterColumnStatement ( IColumn column ) : string |
Alters the column.
|
|
BuildCreateTableStatement ( ITable table ) : string |
Builds a CREATE TABLE statement.
|
|
BuildDropColumnStatement ( string tableName, string columnName ) : string |
Removes the column.
|
|
BuildDropTableStatement ( ITable table ) : string |
Builds a DROP TABLE statement.
|
|
ConvertDataTypeToDbType ( DbType dataType ) : DbType | ||
ConvertDataValueForThisProvider ( object input ) : object | ||
GenerateColumnAttributes ( IColumn column ) : string |
Sets the column attributes.
|
|
GenerateColumns ( ITable table ) : string |
Generates the columns.
|
|
GetDbType ( string sqlType ) : DbType | ||
GetNativeType ( DbType dbType ) : string |
Gets the type of the native.
|
|
GetTableFromDB ( IDataProvider provider, string tableName ) : ITable |
Gets an ITable from the DB based on name
|
|
GetTableList ( IDataProvider provider ) : string[] |
Creates a list of table names
|
|
SetColumnDefaults ( IColumn column ) : void |
Method | Description | |
---|---|---|
BuildDropTableStatement ( string tableName ) : string |
Builds a DROP TABLE statement.
|
public BuildAddColumnStatement ( string tableName, IColumn column ) : string | ||
tableName | string | Name of the table. |
column | IColumn | The column. |
return | string |
public BuildAlterColumnStatement ( IColumn column ) : string | ||
column | IColumn | The column. |
return | string |
public BuildCreateTableStatement ( ITable table ) : string | ||
table | ITable | |
return | string |
public BuildDropColumnStatement ( string tableName, string columnName ) : string | ||
tableName | string | Name of the table. |
columnName | string | Name of the column. |
return | string |
public BuildDropTableStatement ( ITable table ) : string | ||
table | ITable | |
return | string |
protected BuildDropTableStatement ( string tableName ) : string | ||
tableName | string | Name of the table. |
return | string |
public ConvertDataTypeToDbType ( DbType dataType ) : DbType | ||
dataType | DbType | |
return | DbType |
public ConvertDataValueForThisProvider ( object input ) : object | ||
input | object | |
return | object |
public abstract GenerateColumnAttributes ( IColumn column ) : string | ||
column | IColumn | The column. |
return | string |
public GenerateColumns ( ITable table ) : string | ||
table | ITable | Table containing the columns. |
return | string |
public abstract GetDbType ( string sqlType ) : DbType | ||
sqlType | string | |
return | DbType |
public abstract GetNativeType ( DbType dbType ) : string | ||
dbType | DbType | Type of the db. |
return | string |
public GetTableFromDB ( IDataProvider provider, string tableName ) : ITable | ||
provider | IDataProvider | |
tableName | string | |
return | ITable |
public GetTableList ( IDataProvider provider ) : string[] | ||
provider | IDataProvider | |
return | string[] |
public SetColumnDefaults ( IColumn column ) : void | ||
column | IColumn | |
return | void |