C# 클래스 Habanero.Smooth.ManyToOneAutoMapper

A Class to Reflectively map a PropertyInfo to a ManyToOne Habanero Relationship.
파일 보기 프로젝트 열기: Chillisoft/habanero.smooth 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetOwningPropName string
SetRelationshipType void
SetReverseRelationshipName void

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
GetOwningPropName ( ) : string
SetRelationshipType ( IRelationshipDef relDef ) : void
SetReverseRelationshipName ( IRelationshipDef relDef ) : void

메소드 상세

GetRelatedPropName() 공개 정적인 메소드

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
리턴 string

ManyToOneAutoMapper() 공개 메소드

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

ManyToOneAutoMapper() 공개 메소드

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

MapManyToOne() 공개 메소드

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

MustBeMapped() 공개 메소드

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