B
B
bashtanka942014-12-01 12:49:02
Entity Framework
bashtanka94, 2014-12-01 12:49:02

How to create a mandatory relationship without cascading delete in Entity Framework?

How can you create a mandatory relationship but without cascading deletion in EF 6 by convention?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
issa05, 2014-12-01
@issa05

You must use the WillCascadeOnDelete(false) method. Read more here - metanit.com/sharp/entityframework/6.2.php#cascadedelete

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question