C# Класс Habanero.Smooth.ClassAutoMapper

Automatically Maps the Class identified by a TypeWrapper to a ClassDefinition IClassDef
Показать файл Открыть проект Примеры использования класса

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