C# Class Customer.Project.DataAccess.NHibernateMappings.CustomAutoMappingConfiguration

Inheritance: FluentNHibernate.Automapping.DefaultAutomappingConfiguration
ファイルを表示 Open project: atosorigin/AtosMvcStarterKit Class Usage Examples

Public Methods

Method Description
IsComponent ( System type ) : bool

Instruct the auto mapper how to identify components. This method will be called for each type that has already been accepted by ShouldMap(Type), and whichever types you return true for will be mapped as components. The default column names for the component's properties are a combination of the name of the property in the entity and the name of the property in the component type. For example, if the Person class had a HomeAddress property, it would be mapped to the columns HomeAddressStreet, HomeAddressPostCode, etc. For more info refer http://wiki.fluentnhibernate.org/Auto_mapping

IsId ( FluentNHibernate member ) : bool

Instructs automapper, which property of the business entity should be considered as Id field.

ShouldMap ( Type type ) : bool

ShouldMap method allows to specify a filter which instructs automapper for what all classes the automappings should be generated.

Private Methods

Method Description
IsValueObject ( Type type ) : bool

Method Details

IsComponent() public method

Instruct the auto mapper how to identify components. This method will be called for each type that has already been accepted by ShouldMap(Type), and whichever types you return true for will be mapped as components. The default column names for the component's properties are a combination of the name of the property in the entity and the name of the property in the component type. For example, if the Person class had a HomeAddress property, it would be mapped to the columns HomeAddressStreet, HomeAddressPostCode, etc. For more info refer http://wiki.fluentnhibernate.org/Auto_mapping
public IsComponent ( System type ) : bool
type System
return bool

IsId() public method

Instructs automapper, which property of the business entity should be considered as Id field.
public IsId ( FluentNHibernate member ) : bool
member FluentNHibernate
return bool

ShouldMap() public method

ShouldMap method allows to specify a filter which instructs automapper for what all classes the automappings should be generated.
public ShouldMap ( Type type ) : bool
type System.Type
return bool