On Dec 17, 9:29 am, cliff vaughn <[email protected]> wrote:
> THanks Paul, but i was hoping to see some mappings to help illustrate the
> point a bit clearer.  Specifically, the one to many with flags.  I'm
> assuming you'd just have to specify a where clause, but not completely
> sure.

Cliff, did you notice this code fragment in Paul's sample?

  public class StoreMap : IAutoMappingOverride<Store>
   {
       public void Override(AutoMapping<Store> mapping)
       {
           mapping.HasMany(x => x.Managers)
               .Cascade.All()
               .Where("(IsManager = 1)");
           mapping.HasMany(x => x.Staff)
               .Cascade.All()
               .Where("(IsManager = 0)");
       }
   }


Or are you asking a different question?

Also, are you aware of the discussion "An entity with multiple Many-To-
Many lists of the same type?"
http://groups.google.com/group/fluent-nhibernate/browse_thread/thread/302d5f0a11f0fb70/66a0bc50417408aa?hl=en#66a0bc50417408aa

I have not followed this in detail, but it seems to be related.

-Tom

--

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