C# Класс Habanero.Base.DataMappers.DataMapperFactory

Factory for returning the appropriate Datamapper depending on the target type (typically a IBOProp type.)
Наследование: IDataMapperFactory
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DataMapperFactory ( ) : System

Constructs the Factory and sets up the default datamappers for each type

GetDataMapper ( Type targetType ) : IDataMapper

Returns the DataMapper for the targetType.

SetDataMapper ( Type targetType, IDataMapper dataMapper ) : void

sets the dataMapper for the targetType

Приватные методы

Метод Описание
InitialiseDataMappers ( ) : void

Описание методов

DataMapperFactory() публичный Метод

Constructs the Factory and sets up the default datamappers for each type
public DataMapperFactory ( ) : System
Результат System

GetDataMapper() публичный Метод

Returns the DataMapper for the targetType.
public GetDataMapper ( Type targetType ) : IDataMapper
targetType System.Type
Результат IDataMapper

SetDataMapper() публичный Метод

sets the dataMapper for the targetType
public SetDataMapper ( Type targetType, IDataMapper dataMapper ) : void
targetType System.Type
dataMapper IDataMapper
Результат void