C# Class Habanero.Smooth.PropMapperExtensions

Provides extension methods that allow a more fluent programming style
Afficher le fichier Open project: Chillisoft/habanero.smooth

Méthodes publiques

Méthode 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

Méthode Description
IsEnumType ( this type ) : bool

Method Details

CanMapToProp() public static méthode

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
Résultat bool

MapProperty() public static méthode

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
Résultat IPropDef