Entity Framework 4 Cascade Updates?

Does EF4 support the Cascade update rule? Does it make sense to do this with the Cascade delete rule or is it automatically updated when I call SaveChanges in my context? I saw that in MSSQL 2005 there is a Cascade update option, but I do not see support for it in EF4 ...

+4
source share
2 answers

Yes, Cascade Update support Entity Framework support, you can see this property in the .edmx file on the properties tab when clicking on table associations

+2
source

It is not possible to update the Entity key in EF, even if it is an integral part. Therefore, EF does not allow you to create associations without an Entity Key. You can provide this only at the database level.

+1
source

Source: https://habr.com/ru/post/1337159/


All Articles