C# Class Pilgrim.Providers.Dialect

Defines the implementations specific details for a particular database.
Datei anzeigen Open project: juanplopes/pilgrim Class Usage Examples

Public Methods

Method Description
Default ( object defaultValue ) : string
GetAndMapColumnProperties ( Column column ) : ColumnPropertiesMapper
GetColumnMapper ( Column column ) : ColumnPropertiesMapper
GetTypeName ( DbType type ) : string

Get the name of the database type associated with the given

GetTypeName ( DbType type, int length ) : string

Get the name of the database type associated with the given

GetTypeName ( DbType type, int length, int precision, int scale ) : string

Get the name of the database type associated with the given

NewProviderForDialect ( string invariantProvider, string connectionString ) : ITransformationProvider
Quote ( string value ) : string
RegisterProperty ( ColumnProperty property, string sql ) : void
SqlForProperty ( ColumnProperty property ) : string

Protected Methods

Method Description
Dialect ( ) : System
RegisterColumnType ( DbType code, int capacity, string name ) : void

Subclasses register a typename for the given type code and maximum column length. $l in the type name will be replaced by the column length (if appropriate)

RegisterColumnType ( DbType code, string name ) : void

Suclasses register a typename for the given type code. $l in the typename will be replaced by the column length (if appropriate).

Method Details

Default() public method

public Default ( object defaultValue ) : string
defaultValue object
return string

Dialect() protected method

protected Dialect ( ) : System
return System

GetAndMapColumnProperties() public method

public GetAndMapColumnProperties ( Column column ) : ColumnPropertiesMapper
column Column
return ColumnPropertiesMapper

GetColumnMapper() public method

public GetColumnMapper ( Column column ) : ColumnPropertiesMapper
column Column
return ColumnPropertiesMapper

GetTypeName() public method

Get the name of the database type associated with the given
public GetTypeName ( DbType type ) : string
type DbType The DbType
return string

GetTypeName() public method

Get the name of the database type associated with the given
public GetTypeName ( DbType type, int length ) : string
type DbType The DbType
length int
return string

GetTypeName() public method

Get the name of the database type associated with the given
public GetTypeName ( DbType type, int length, int precision, int scale ) : string
type DbType The DbType
length int
precision int
scale int
return string

NewProviderForDialect() public method

public NewProviderForDialect ( string invariantProvider, string connectionString ) : ITransformationProvider
invariantProvider string
connectionString string
return ITransformationProvider

Quote() public method

public Quote ( string value ) : string
value string
return string

RegisterColumnType() protected method

Subclasses register a typename for the given type code and maximum column length. $l in the type name will be replaced by the column length (if appropriate)
protected RegisterColumnType ( DbType code, int capacity, string name ) : void
code DbType The typecode
capacity int Maximum length of database type
name string The database type name
return void

RegisterColumnType() protected method

Suclasses register a typename for the given type code. $l in the typename will be replaced by the column length (if appropriate).
protected RegisterColumnType ( DbType code, string name ) : void
code DbType The typecode
name string The database type name
return void

RegisterProperty() public method

public RegisterProperty ( ColumnProperty property, string sql ) : void
property ColumnProperty
sql string
return void

SqlForProperty() public method

public SqlForProperty ( ColumnProperty property ) : string
property ColumnProperty
return string