Page 1 of 1

Cascade on delete in entity framework

Posted: Wed 03 Jul 2013 08:45
by locus
I'm using entity framework 5, .net 4.5 and visual studio 2012 and I'm trying to enable cascade no delete.
I followed the instructions in, http://blogs.devart.com/dotconnect/enti ... html#third but the CSDL/SSDL files on my system contained no reference to the objects in my EF model.
I'm not quite sure where to go from here.

Any help is greatly appreciated.

Re: Cascade on delete in entity framework

Posted: Wed 03 Jul 2013 15:03
by Shalex
Please open your model in Entity Developer (http://www.devart.com/entitydeveloper/ed-vs-edm.html), navigate to Model Explorer > ModelName.Store > Constraints > open Storage Constraint Editor for your constraint and set the "Delete Action" property to Cascade.