C# Class Habanero.Base.DataMappers.DataMapperFactory

Factory for returning the appropriate Datamapper depending on the target type (typically a IBOProp type.)
Inheritance: IDataMapperFactory
Afficher le fichier Open project: Chillisoft/habanero Class Usage Examples

Méthodes publiques

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

Private Methods

Méthode Description
InitialiseDataMappers ( ) : void

Method Details

DataMapperFactory() public méthode

Constructs the Factory and sets up the default datamappers for each type
public DataMapperFactory ( ) : System
Résultat System

GetDataMapper() public méthode

Returns the DataMapper for the targetType.
public GetDataMapper ( Type targetType ) : IDataMapper
targetType System.Type
Résultat IDataMapper

SetDataMapper() public méthode

sets the dataMapper for the targetType
public SetDataMapper ( Type targetType, IDataMapper dataMapper ) : void
targetType System.Type
dataMapper IDataMapper
Résultat void