I have
class Order:IHaveDiscounts
public Order(){
discounts = new DiscountContext(this);
}
DiscountContext Discounts
get { return discounts ;}
and
class DiscountOrder(IHaveDiscounts discounted)
...
Order is a mapped entity and I want to use DiscountOrder as a
component to strip Order from behaviour it should not really own, it's
becoming WAY to big, anyway. But when I try this NH complains about
it:
No default constructor for entity: DiscountContext
Is there an easy way around this? Currently I seem to hit my head on
NH all the time when I try to keep my domain as I think it should be
:(
--
Jan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---