C# Class Habanero.Smooth.AllClassesAutoMapper

Maps all Business Objects in an ITypeSource to a IClassDef
Datei anzeigen Open project: Chillisoft/habanero.smooth Class Usage Examples

Private Properties

Property Type Description
ContainsRelatedClass bool
CreateReverseRelDef IRelationshipDef
CreateReverseRelationshipDefs void
MapAllReverseRelationships void
MapAndStoreClassDefFor IClassDef
MergeClassDefs void
RelatedObjectClassDef IClassDef

Public Methods

Method Description
AllClassesAutoMapper ( ITypeSource source ) : System

Constructs the AllClassesAutoMapper with a specified Source.

CreateReverseRelationship ( ClassDefCol classDefCol, IClassDef classDef, IRelationshipDef relationship ) : IRelationshipDef

Creates a Reverse Relationship when required.

Map ( ) : ClassDefCol

Maps the IBusinessObject classes in the ITypeSource.

Private Methods

Method Description
ContainsRelatedClass ( IRelationshipDef relationship, ClassDefCol classDefCol ) : bool
CreateReverseRelDef ( IRelationshipDef rel, IClassDef classDef ) : IRelationshipDef
CreateReverseRelationshipDefs ( ClassDefCol classDefCol, IClassDef classDef ) : void
MapAllReverseRelationships ( IEnumerable classDefsMapped ) : void
MapAndStoreClassDefFor ( TypeWrapper type ) : IClassDef
MergeClassDefs ( IClassDef classDef ) : void
RelatedObjectClassDef ( ClassDefCol classDefCol, IRelationshipDef relationshipDef ) : IClassDef

The ClassDef for the related object.

Method Details

AllClassesAutoMapper() public method

Constructs the AllClassesAutoMapper with a specified Source.
public AllClassesAutoMapper ( ITypeSource source ) : System
source ITypeSource
return System

CreateReverseRelationship() public static method

Creates a Reverse Relationship when required.
public static CreateReverseRelationship ( ClassDefCol classDefCol, IClassDef classDef, IRelationshipDef relationship ) : IRelationshipDef
classDefCol ClassDefCol
classDef IClassDef
relationship IRelationshipDef
return IRelationshipDef

Map() public method

Maps the IBusinessObject classes in the ITypeSource.
public Map ( ) : ClassDefCol
return ClassDefCol