I've read most of the posts on this, but it's still a little blurry to me on the best way to delete "UpTo". Is there an ES way of handling this or do I just go entity by entity?
Here's my schema as an example:

I want to delete all related records when I delete an Order. All the children work fine, such as OrderItems, OrderItemImageFiles, OrderNote, and OrderTransaction. But I also want to delete the related Shipping Address and Billing Address and Credit Card.
Here's the code I'm using presently:
Code:
1 private void DeleteOrder()
2 {
3 if (_ord.BillingAddressID != null)
4 {
5 Address addBilling = new Address();
6 addBilling.LoadByPrimaryKey((int)_ord.BillingAddressID);
7 addBilling.MarkAsDeleted();
8 addBilling.Save();
9 }
10
11 if (_ord.ShippingAddressID != null)
12 {
13 Address addShipping = new Address();
14 addShipping.LoadByPrimaryKey((int)_ord.ShippingAddressID);
15 addShipping.MarkAsDeleted();
16 addShipping.Save();
17 }
18
19 if (_ord.CreditCardID != null)
20 {
21 CreditCard cc = new CreditCard();
22 cc.LoadByPrimaryKey((int)_ord.CreditCardID);
23 cc.MarkAsDeleted();
24 cc.Save();
25 }
26
27 // These didn't work, but I'm probably doing it wrong.
28 //_ord.UpToAddressByBillingAddressID.MarkAsDeleted();
29 //_ord.UpToAddressByShippingAddressID.MarkAsDeleted();
30 //_ord.UpToCreditCardByCreditCardID.MarkAsDeleted();
31
32 _ord.MarkAsDeleted();
33 _ord.Save();
34 }
35
Is there an easier, ES built-in way of handling this? The commented section wasn't working so now I use the code as shown above. I am getting a constraint error, but that's in SQL Server. I think I can fix that.
Any suggestions would be appreciated.
Thanks,
King Wilder
http://www.kingwilder.com