Hi guys, Does set,bag while cascading is used for Ilist or Iset only. What if the entity is not a list, just a non collection relationship. In that case what should we use while cascading.
A:
No you cannot use set, bag, list, idbag, or map for non-collection properties on an entity.
set -> Iesi.Collections.ISet
bag, idbag, map -> System.Collections.IList
map -> System.Collections.IDictionary
If you want to use cascade for a non-collection (many-to-one) relationship then yes you can. Here is a blog post about many-to-one and another about cascades.
Nigel
2009-07-07 21:11:38