Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Example:
If we have a class "Product" with a property "DefinitionId" and a class "ProductDefinition" with a property "Id", the cache key will be the same for both properties. This will make the DataMapper return always the first property that was configured.
The problem is the line:
string key = targetType.FullName + "." + name;
in GetAccessorFactory.cs and CreateAccessorFactory.cs.
Changing it to:
string key = targetType.FullName + "." + name;
will solve the problem.