I want to create custom mapping parts for the following sections
(property and sql-delete)

<class name="User" where="IsDeleted=0">
    <!-- id and properties -->
    <property name="IsDeleted" access="none" type="Boolean" />
    <sql-delete check="rowcount">UPDATE User SET IsDeleted=1 WHERE
IsDeleted=0</sql-delete>
</class>

I tried to create classes inherited from IMappingPart and than add
them in constructor

this.AddPart(new DeletedPropertyPart());
this.AddPart(new SqlDeletePart());

but in resulting xml <sql-delete /> (and some other properties) is
rendered BEFORE <id /> element even if I set
PositionOnDocument=PartPosition.Last and LevelWithinPosition=10.

Is there simple way to write custom mapping mart in the specified
position?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to