Cascade on delete in entity framework

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
locus
Posts: 3
Joined: Wed 03 Jul 2013 08:40

Cascade on delete in entity framework

Post by 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/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.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Cascade on delete in entity framework

Post by 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.

Post Reply