C# Class Habanero.Smooth.PropMapperExtensions

Provides extension methods that allow a more fluent programming style
Mostrar archivo Open project: Chillisoft/habanero.smooth

Public Methods

Method Description
CanMapToProp ( this type ) : bool

Using the heuristic that the property should be a mappable type or an Enum to be mapped as a property else it should be a Relationship or a component.

MapProperty ( this propInfo ) : IPropDef

Based on the information available for the PropertyInfo (Name, Attributes, DataTypes etc) And a set of Heuristics a Property Definition is created for this PropertyInfo

Private Methods

Method Description
IsEnumType ( this type ) : bool

Method Details

CanMapToProp() public static method

Using the heuristic that the property should be a mappable type or an Enum to be mapped as a property else it should be a Relationship or a component.
public static CanMapToProp ( this type ) : bool
type this
return bool

MapProperty() public static method

Based on the information available for the PropertyInfo (Name, Attributes, DataTypes etc) And a set of Heuristics a Property Definition is created for this PropertyInfo
public static MapProperty ( this propInfo ) : IPropDef
propInfo this
return IPropDef