Delete subitems / children

Dec 31, 2014 at 5:02 PM
Which the diffrent approch used by this Generic Framework to delete the item with his subitems ?
Can you give me an Example of codes ?

Does this operation (Delete subitems , children ) requied configure EF and/or Sql to do a cascading delete ?
Any help will be appreciated.
Jan 2, 2015 at 11:03 AM
Quick read up:, which you can set the object state at any layer of your object graph and perform different actions on your object graph with one transaction e.g deleting sub-items.

If you want to enforce cascading sub-items, do this as your normally would with your EF mappings.

        .HasOptional(a => a.UserDetail)
Marked as answer by lelong37 on 1/2/2015 at 3:03 AM