cascading deletes - Why does Entity Framework not properly update OnDelete in CSDL (conceptual model)? -
i updated number of tables in database use ondelete=cascade
, however, when went update edmx file via update model database
noticed ondelete
not updated.
after bit of searching, found following 'tip' http://msdn.microsoft.com/en-us/library/bb738695.aspx
if update database cascade delete rule , update existing model database, entity framework add cascade delete rule ssdl not csdl. have add manually. specify cascade delete rule in conceptual model, select association on entity designer surface. then, in properties window, select cascade ondelete property.
my question why case? updated 15 tables , need go , find each relationship , same update in edmx
file... there easier more efficient way?
in perfect world should apparently known issue baking documentation. creating, adding, modifying, , deleting objects
it's in tip block before in section part.
so unless designer programmer coded wants explain it, we'll have accept 'working intended' thing.
Comments
Post a Comment