C# 클래스 Habanero.Smooth.ClassAutoMapper

Automatically Maps the Class identified by a TypeWrapper to a ClassDefinition IClassDef
파일 보기 프로젝트 열기: Chillisoft/habanero.smooth 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CreateClassDef IClassDef
CreateForeignKeyProp void
CreateOwningPropIfRequired void
GetRelDefs IEnumerable
HasPropDef bool
MapManyToOneRelationships void
MapOneToManyRelationships void
MapOneToOneRelationships void
MapPropDefs IEnumerable
MapProperties void
MapRelDefs void
MapRelationships void
MapSuperClassHierarchy void
MapUniqueConstraints void
MustBeMapped bool
SetDatabaseFieldName void

공개 메소드들

메소드 설명
ClassAutoMapper ( Type type ) : System

Constructs a ClassAutoMapper.

ClassAutoMapper ( TypeWrapper typeWrapper ) : System

Constructs a ClassAutoMapper.

Map ( ) : IClassDef

Maps the type wrapped by the ReflectionWrappers.TypeWrapper to a ClassDef. NNB: This only maps this Class it will not try to Create or map relationships from related classes. This method is primarily for testing etc normally you would be mapping using the AllClassesAutoMapper

비공개 메소드들

메소드 설명
CreateClassDef ( ) : IClassDef
CreateForeignKeyProp ( IRelationshipDef relationshipDef ) : void
CreateOwningPropIfRequired ( IEnumerable relDefs ) : void
GetRelDefs ( IRelationshipDef>.Func mapSelector ) : IEnumerable
HasPropDef ( string propertyName ) : bool
MapManyToOneRelationships ( ) : void
MapOneToManyRelationships ( ) : void
MapOneToOneRelationships ( ) : void
MapPropDefs ( ) : IEnumerable
MapProperties ( ) : void
MapRelDefs ( ) : void
MapRelationships ( IRelationshipDef>.Func mappingExpression ) : void
MapSuperClassHierarchy ( ) : void
MapUniqueConstraints ( ) : void
MustBeMapped ( ) : bool
SetDatabaseFieldName ( IPropDef propDef, string relationshipName ) : void

메소드 상세

ClassAutoMapper() 공개 메소드

Constructs a ClassAutoMapper.
public ClassAutoMapper ( Type type ) : System
type System.Type
리턴 System

ClassAutoMapper() 공개 메소드

Constructs a ClassAutoMapper.
public ClassAutoMapper ( TypeWrapper typeWrapper ) : System
typeWrapper TypeWrapper
리턴 System

Map() 공개 메소드

Maps the type wrapped by the ReflectionWrappers.TypeWrapper to a ClassDef. NNB: This only maps this Class it will not try to Create or map relationships from related classes. This method is primarily for testing etc normally you would be mapping using the AllClassesAutoMapper
public Map ( ) : IClassDef
리턴 IClassDef