C# Класс Habanero.Smooth.PropMapperExtensions

Provides extension methods that allow a more fluent programming style
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
IsEnumType ( this type ) : bool

Описание методов

CanMapToProp() публичный статический Метод

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
Результат bool

MapProperty() публичный статический Метод

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
Результат IPropDef