C# Class Habanero.Smooth.ClassAutoMapper

Automatically Maps the Class identified by a TypeWrapper to a ClassDefinition IClassDef
Afficher le fichier Open project: Chillisoft/habanero.smooth Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

Constructs a ClassAutoMapper.
public ClassAutoMapper ( Type type ) : System
type System.Type
Résultat System

ClassAutoMapper() public méthode

Constructs a ClassAutoMapper.
public ClassAutoMapper ( TypeWrapper typeWrapper ) : System
typeWrapper TypeWrapper
Résultat System

Map() public méthode

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
Résultat IClassDef