C# Class Glass.Mapper.Configuration.AbstractTypeConfiguration

Datei anzeigen Open project: mikeedwards83/Glass.Mapper Class Usage Examples

Public Methods

Method Description
AbstractTypeConfiguration ( ) : System

Initializes a new instance of the AbstractTypeConfiguration class.

AddProperty ( AbstractPropertyConfiguration property ) : void

Adds the property.

AutoMapProperties ( Type type ) : IEnumerable

Autoes the map properties.

MapPropertiesToObject ( object obj, IAbstractService service, AbstractTypeCreationContext context ) : void

Maps the properties to object.

PerformAutoMap ( ) : void

Called when the AutoMap property is true. Automatically maps un-specified properties.

Protected Methods

Method Description
AutoMapProperty ( PropertyInfo property ) : AbstractPropertyConfiguration

Called to map each property automatically

Method Details

AbstractTypeConfiguration() public method

Initializes a new instance of the AbstractTypeConfiguration class.
public AbstractTypeConfiguration ( ) : System
return System

AddProperty() public method

Adds the property.
public AddProperty ( AbstractPropertyConfiguration property ) : void
property AbstractPropertyConfiguration The property.
return void

AutoMapProperties() public method

Autoes the map properties.
public AutoMapProperties ( Type type ) : IEnumerable
type System.Type The type.
return IEnumerable

AutoMapProperty() protected method

Called to map each property automatically
protected AutoMapProperty ( PropertyInfo property ) : AbstractPropertyConfiguration
property System.Reflection.PropertyInfo
return AbstractPropertyConfiguration

MapPropertiesToObject() public method

Maps the properties to object.
public MapPropertiesToObject ( object obj, IAbstractService service, AbstractTypeCreationContext context ) : void
obj object The obj.
service IAbstractService The service.
context AbstractTypeCreationContext The context.
return void

PerformAutoMap() public method

Called when the AutoMap property is true. Automatically maps un-specified properties.
public PerformAutoMap ( ) : void
return void