Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
DataMapper 1.6.1, DataMapper 1.6.2, DataMapper 3.0
-
None
Description
Extending a resultmap the parent <constructor> not found in child resultmap.
Example:
<resultMap id="rmAll" class="Circle" >
<constructor>
<argument argumentName="id" dbType="UniqueIdentifier" column="pk" />
</constructor>
<result property="PropertyX" dbType="NVarChar" column="columnX"/>
......
</resultMap>
<resultMap id="rmAllPlusColor" extends="rmAll" class="Circle" >
<result property="Color" dbType="Int" column="color" />
</resultMap>
If you use rmAllPlusColor the contructor Circle(Guid id) its no called.
Searching, we found, it should completing the method BuildResultMap() at
\IbatisNet.DataMapper\Configuration\DomSqlMapBuilder.cs,
but ResultMap have no "Constructor" property, and no found a clear way of do this.