C# Class SubSonic.DataProviders.MySQL.MySqlSchema

Inheritance: SubSonic.SqlGeneration.Schema.ANSISchemaGenerator
Mostra file Open project: rally25rs/SubSonic-3.0

Public Methods

Method Description
BuildCreateTableStatement ( ITable table ) : string

Builds a CREATE TABLE statement.

GenerateColumnAttributes ( IColumn column ) : string

Sets the column attributes.

GenerateColumns ( ITable table ) : string

Generates the columns.

GetDbType ( string mySqlType ) : DbType

Gets the type of the db.

GetNativeType ( DbType dbType ) : string

Gets the type of the native.

MySqlSchema ( ) : System.Data

Method Details

BuildCreateTableStatement() public method

Builds a CREATE TABLE statement.
public BuildCreateTableStatement ( ITable table ) : string
table ITable
return string

GenerateColumnAttributes() public method

Sets the column attributes.
public GenerateColumnAttributes ( IColumn column ) : string
column IColumn The column.
return string

GenerateColumns() public method

Generates the columns.
public GenerateColumns ( ITable table ) : string
table ITable Table containing the columns.
return string

GetDbType() public method

Gets the type of the db.
public GetDbType ( string mySqlType ) : DbType
mySqlType string Type of my SQL.
return DbType

GetNativeType() public method

Gets the type of the native.
public GetNativeType ( DbType dbType ) : string
dbType DbType Type of the db.
return string

MySqlSchema() public method

public MySqlSchema ( ) : System.Data
return System.Data