C# Class Pilgrim.Providers.ColumnPropertiesMapper

This is basically a just a helper base class per-database implementors may want to override ColumnSql
Show file Open project: juanplopes/pilgrim

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 property

the type of the column
protected string columnSql
return string

defaultVal protected property

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

dialect protected property

protected Dialect,Pilgrim.Providers dialect
return Dialect

indexed protected property

Sql if This column is Indexed
protected bool indexed
return bool

name protected property

The name of the column
protected string name
return string

type protected property

The SQL type
protected string type
return string