Hi,
I would like to know how is the best way to model an use relation between business objects in CSLA?
For example: I have a business object called Payment. This object has many properties like PaymentId, OrderId, BillingInfo, ShippingInfo.
BillingInfo and ShippingInfo are two businness objects storing all the information about the billing and shipping.
When I retrieve the information about billing and Shipping I store this information in the payment object, for example:
Payment.BillingInfo = Billing.GetBillingById(idBilling);
Payment.ShippingInfo = Shipping.GetShippingById(IdShipping);
When I try to update the payment object, I receive this exception: "Edit level mismatch in AcceptChanges".
So, How is the best way to model this scenario or how can I solve this problem?
I appreciate your help!!