C# Class Habanero.Smooth.ClassAutoMapper

Automatically Maps the Class identified by a TypeWrapper to a ClassDefinition IClassDef
ファイルを表示 Open project: Chillisoft/habanero.smooth Class Usage Examples

Private Properties

Property Type Description
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

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

ClassAutoMapper() public method

Constructs a ClassAutoMapper.
public ClassAutoMapper ( Type type ) : System
type System.Type
return System

ClassAutoMapper() public method

Constructs a ClassAutoMapper.
public ClassAutoMapper ( TypeWrapper typeWrapper ) : System
typeWrapper TypeWrapper
return System

Map() public method

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