Even if in NH there is no problem duplicating a property-map I think that
your copy&paste exercise should be a little bit reduced.

cm.Set(pit => pit.AttackingPossessions, set =>
set.Table("PossessionAttackingPlayers"), rel => rel.ManyToMany(map =>
map.Column("PossessionId")));
   cm.Set(pit => pit.AttackingPossessions, set => set.Inverse(false));
   cm.Set(pit => pit.AttackingPossessions, set =>
set.Cascade(Cascade.Persist));

   cm.Set(pit => pit.DefendingPossessions, set =>
set.Table("PossessionDefendingPlayers"), rel => rel.ManyToMany(map =>
map.Column("PossessionId")));
   cm.Set(pit => pit.DefendingPossessions, set => set.Inverse(false));
   cm.Set(pit => pit.DefendingPossessions, set =>
set.Cascade(Cascade.Persist));

On Tue, Apr 19, 2011 at 10:36 AM, Michael DELVA <[email protected]>wrote:

> Why too much Locquacious?
>
> I didn't try to do it with XML. That works well like this, I was just
> wondering if another solution would exist :)
>
> --
> You received this message because you are subscribed to the Google Groups
> "nhusers" 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/nhusers?hl=en.
>



-- 
Fabio Maulo

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en.

Reply via email to