C# 클래스 SubSonic.SqlGeneration.Schema.ANSISchemaGenerator

A schema generator for your DB
상속: ISchemaGenerator
파일 보기 프로젝트 열기: rally25rs/SubSonic-3.0

보호된 프로퍼티들

프로퍼티 타입 설명
ADD_COLUMN string
ALTER_COLUMN string
CREATE_TABLE string
DROP_COLUMN string
DROP_TABLE string
UPDATE_DEFAULTS string

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
BuildDropTableStatement ( string tableName ) : string

Builds a DROP TABLE statement.

메소드 상세

BuildAddColumnStatement() 공개 메소드

Adds the column.
public BuildAddColumnStatement ( string tableName, IColumn column ) : string
tableName string Name of the table.
column IColumn The column.
리턴 string

BuildAlterColumnStatement() 공개 메소드

Alters the column.
public BuildAlterColumnStatement ( IColumn column ) : string
column IColumn The column.
리턴 string

BuildCreateTableStatement() 공개 메소드

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

BuildDropColumnStatement() 공개 메소드

Removes the column.
public BuildDropColumnStatement ( string tableName, string columnName ) : string
tableName string Name of the table.
columnName string Name of the column.
리턴 string

BuildDropTableStatement() 공개 메소드

Builds a DROP TABLE statement.
public BuildDropTableStatement ( ITable table ) : string
table ITable
리턴 string

BuildDropTableStatement() 보호된 메소드

Builds a DROP TABLE statement.
protected BuildDropTableStatement ( string tableName ) : string
tableName string Name of the table.
리턴 string

ConvertDataTypeToDbType() 공개 메소드

public ConvertDataTypeToDbType ( DbType dataType ) : DbType
dataType DbType
리턴 DbType

ConvertDataValueForThisProvider() 공개 메소드

public ConvertDataValueForThisProvider ( object input ) : object
input object
리턴 object

GenerateColumnAttributes() 공개 추상적인 메소드

Sets the column attributes.
public abstract GenerateColumnAttributes ( IColumn column ) : string
column IColumn The column.
리턴 string

GenerateColumns() 공개 메소드

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

GetDbType() 공개 추상적인 메소드

public abstract GetDbType ( string sqlType ) : DbType
sqlType string
리턴 DbType

GetNativeType() 공개 추상적인 메소드

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

GetTableFromDB() 공개 메소드

Gets an ITable from the DB based on name
public GetTableFromDB ( IDataProvider provider, string tableName ) : ITable
provider IDataProvider
tableName string
리턴 ITable

GetTableList() 공개 메소드

Creates a list of table names
public GetTableList ( IDataProvider provider ) : string[]
provider IDataProvider
리턴 string[]

SetColumnDefaults() 공개 메소드

public SetColumnDefaults ( IColumn column ) : void
column IColumn
리턴 void

프로퍼티 상세

ADD_COLUMN 보호되어 있는 프로퍼티

protected string ADD_COLUMN
리턴 string

ALTER_COLUMN 보호되어 있는 프로퍼티

protected string ALTER_COLUMN
리턴 string

CREATE_TABLE 보호되어 있는 프로퍼티

protected string CREATE_TABLE
리턴 string

DROP_COLUMN 보호되어 있는 프로퍼티

protected string DROP_COLUMN
리턴 string

DROP_TABLE 보호되어 있는 프로퍼티

protected string DROP_TABLE
리턴 string

UPDATE_DEFAULTS 보호되어 있는 프로퍼티

protected string UPDATE_DEFAULTS
리턴 string