C# Class Habanero.Smooth.ManyToOneAutoMapper

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

Private Properties

Property Type Description
GetOwningPropName string
SetRelationshipType void
SetReverseRelationshipName void

Public Methods

Method 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

Method Description
GetOwningPropName ( ) : string
SetRelationshipType ( IRelationshipDef relDef ) : void
SetReverseRelationshipName ( IRelationshipDef relDef ) : void

Method Details

GetRelatedPropName() public static method

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
return string

ManyToOneAutoMapper() public method

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

ManyToOneAutoMapper() public method

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

MapManyToOne() public method

Maps the PropertyInfo to a Many to One relationship
public MapManyToOne ( ) : IRelationshipDef
return IRelationshipDef

MustBeMapped() public method

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