Cascade on delete in entity framework

Cascade on delete in entity framework

Postby locus » Wed 03 Jul 2013 08:45

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/entity-framework-tips-and-tricks-part-3.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.
locus
 
Posts: 3
Joined: Wed 03 Jul 2013 08:40

Re: Cascade on delete in entity framework

Postby Shalex » Wed 03 Jul 2013 15:03

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.
Shalex
Devart Team
 
Posts: 7654
Joined: Thu 14 Aug 2008 12:44


Return to dotConnect for PostgreSQL