C# Class Simple.Migrator.Providers.ColumnPropertiesMapper

This is basically a just a helper base class per-database implementors may want to override ColumnSql
Datei anzeigen Open project: juanplopes/simple

Protected Properties

Property Type Description
columnSql string
defaultVal object
dialect Dialect
indexed bool
name string
type string

Public Methods

Method Description
ColumnPropertiesMapper ( Dialect dialect, string type ) : System
MapColumnProperties ( Column column ) : void
PropertySelected ( ColumnProperty source, ColumnProperty comparison ) : bool

Private Methods

Method Description
AddValueIfSelected ( Column column, ColumnProperty property, ICollection vals ) : void

Method Details

ColumnPropertiesMapper() public method

public ColumnPropertiesMapper ( Dialect dialect, string type ) : System
dialect Dialect
type string
return System

MapColumnProperties() public method

public MapColumnProperties ( Column column ) : void
column Column
return void

PropertySelected() public static method

public static PropertySelected ( ColumnProperty source, ColumnProperty comparison ) : bool
source ColumnProperty
comparison ColumnProperty
return bool

Property Details

columnSql protected_oe property

the type of the column
protected string columnSql
return string

defaultVal protected_oe property

Sql if this column has a default value
protected object defaultVal
return object

dialect protected_oe property

protected Dialect,Simple.Migrator.Providers dialect
return Dialect

indexed protected_oe property

Sql if This column is Indexed
protected bool indexed
return bool

name protected_oe property

The name of the column
protected string name
return string

type protected_oe property

The SQL type
protected string type
return string