We're updating the issue view to help you get more done. 

Add a PropertyDefinitionCollectionFactory that gets the property creation logic from ClassReflector

Description

  • Add a method CreatePropertyDefinition (ClassDefinition, PropertyInfo) to the IMappingObjectFactory interface.

    • Implement by creating a new PropertyReflector and calling GetMetadata on it.

  • Add a class PropertyDefinitionCollectionFactory that gets the IMappingObjectFactory and a NameResolver injected.

    • Add a method CreatePropertyDefinitions (IEnumerable<PropertyInfo>) that returns a PropertyDefinitionCollection.

      • Implement with the code from ClassReflector.CreatePropertyDefinitions.

    • Add IMappingObjectFactory.CreatePropertyDefinitionCollection (IEnumerable<PropertyInfo>).

      • Implement by creating a new PropertyDefinitionCollectionFactory and calling it.

  • Change ClassReflector to take an IMappingObjectFactory object in its ctor.

  • Remove ClassReflector.CreatePropertyDefinitions, use _factory.CreatePropertyDefinitionCollection.

Status

Assignee

User

Reporter

Fabian Schmied

Labels

None

Time tracking

2h

Components

Fix versions

Priority

Normal
Configure