C# Class Habanero.Smooth.ManyToOneAutoMapper

A Class to Reflectively map a PropertyInfo to a ManyToOne Habanero Relationship.
Afficher le fichier Open project: Chillisoft/habanero.smooth Class Usage Examples

Private Properties

Свойство Type Description
GetOwningPropName string
SetRelationshipType void
SetReverseRelationshipName void

Méthodes publiques

Méthode Description
GetRelatedPropName ( TypeWrapper propertyType ) : string

Returns the Related Property Name based on a Heuristic dependent upon the Related ClassType i.e. the propertyType.

ManyToOneAutoMapper ( PropertyInfo propInfo ) : System

Constructs the Reflective Mapper based on a PropertyInfo

ManyToOneAutoMapper ( PropertyWrapper propWrapper ) : System

Constructs the Reflective Mapper based on a ReflectionWrappers.PropertyWrapper

MapManyToOne ( ) : IRelationshipDef

Maps the PropertyInfo to a Many to One relationship

MustBeMapped ( ) : bool

Determines whether this Property Info must be mapped based on Its AutoMapping Attributes.

Private Methods

Méthode Description
GetOwningPropName ( ) : string
SetRelationshipType ( IRelationshipDef relDef ) : void
SetReverseRelationshipName ( IRelationshipDef relDef ) : void

Method Details

GetRelatedPropName() public static méthode

Returns the Related Property Name based on a Heuristic dependent upon the Related ClassType i.e. the propertyType.
public static GetRelatedPropName ( TypeWrapper propertyType ) : string
propertyType TypeWrapper
Résultat string

ManyToOneAutoMapper() public méthode

Constructs the Reflective Mapper based on a PropertyInfo
public ManyToOneAutoMapper ( PropertyInfo propInfo ) : System
propInfo System.Reflection.PropertyInfo
Résultat System

ManyToOneAutoMapper() public méthode

Constructs the Reflective Mapper based on a ReflectionWrappers.PropertyWrapper
public ManyToOneAutoMapper ( PropertyWrapper propWrapper ) : System
propWrapper PropertyWrapper
Résultat System

MapManyToOne() public méthode

Maps the PropertyInfo to a Many to One relationship
public MapManyToOne ( ) : IRelationshipDef
Résultat IRelationshipDef

MustBeMapped() public méthode

Determines whether this Property Info must be mapped based on Its AutoMapping Attributes.
public MustBeMapped ( ) : bool
Résultat bool