Pregunta

I am trying to enable cascade on delete in entity framework, using postgresql and the dotconnect database connector.
According to this guide I'm supposed to edit the CSDL and SSDL that I should be able to find in "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Xml\Schemas" according to this. I did find the CSDL and SSDL files, but when I opened them they did not contain any line (or anything remotely similar to) .
The blog is 3 years old so the information is probably outdated, but where do I go from here?

¿Fue útil?

Solución

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 Constrain Editor for your constraint and set the "Delete Action" property to Cascade.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top