C# Class Dashing.Configuration.DefaultConvention

The default convention.
Inheritance: IConvention
显示文件 Open project: Polylytics/dashing

Protected Properties

Property Type Description
Pluralizer System.Data.Entity.Design.PluralizationServices.PluralizationService

Public Methods

Method Description
DecimalPrecisionFor ( Type entity, string propertyName ) : byte

The decimal precision for.

DecimalScaleFor ( Type entity, string propertyName ) : byte

The decimal scale for.

DefaultConvention ( ushort stringLength = 255, byte decimalPrecision = 18, byte decimalScale = 10 ) : System

Initializes a new instance of the DefaultConvention class.

IsPrimaryKeyAutoGenerated ( IColumn primaryKeyColumn ) : bool

The is primary key auto generated.

PrimaryKeyFor ( Type entity, IEnumerable propertyNames ) : string

The primary key of.

SchemaFor ( Type entity ) : string

The schema for.

StringLengthFor ( Type entity, string propertyName ) : ushort

The string length for.

TableFor ( Type entity ) : string

The table for.

Private Methods

Method Description
ScorePrimaryKeyCandidate ( string propertyName ) : PrimaryKeyCandidate

Method Details

DecimalPrecisionFor() public method

The decimal precision for.
public DecimalPrecisionFor ( Type entity, string propertyName ) : byte
entity System.Type /// The entity. ///
propertyName string /// The property name. ///
return byte

DecimalScaleFor() public method

The decimal scale for.
public DecimalScaleFor ( Type entity, string propertyName ) : byte
entity System.Type /// The entity. ///
propertyName string /// The property name. ///
return byte

DefaultConvention() public method

Initializes a new instance of the DefaultConvention class.
public DefaultConvention ( ushort stringLength = 255, byte decimalPrecision = 18, byte decimalScale = 10 ) : System
stringLength ushort /// The string length. ///
decimalPrecision byte /// The decimal precision. ///
decimalScale byte /// The decimal scale. ///
return System

IsPrimaryKeyAutoGenerated() public method

The is primary key auto generated.
public IsPrimaryKeyAutoGenerated ( IColumn primaryKeyColumn ) : bool
primaryKeyColumn IColumn /// The entity. ///
return bool

PrimaryKeyFor() public method

The primary key of.
public PrimaryKeyFor ( Type entity, IEnumerable propertyNames ) : string
entity System.Type /// The entity. ///
propertyNames IEnumerable /// The array of property names to choose from. ///
return string

SchemaFor() public method

The schema for.
public SchemaFor ( Type entity ) : string
entity System.Type /// The entity. ///
return string

StringLengthFor() public method

The string length for.
public StringLengthFor ( Type entity, string propertyName ) : ushort
entity System.Type /// The entity. ///
propertyName string /// The property name. ///
return ushort

TableFor() public method

The table for.
public TableFor ( Type entity ) : string
entity System.Type /// The entity. ///
return string

Property Details

Pluralizer protected_oe property

The pluralizer.
protected PluralizationService,System.Data.Entity.Design.PluralizationServices Pluralizer
return System.Data.Entity.Design.PluralizationServices.PluralizationService