EF 6 Remove entity connected to read only view -


i have 2 entities: 1 based on normal db table , base on db view. connected 1 many, this:

ef remove entity connected read view

entity city not have store procedures mapped because entity country enough have read collection of cities. , cascade rule not set.

but want delete country instance have cities loaded i've received following error:

unable update entityset because has definingquery , no 'deletefunction' element exists in 'modificationfunctionmapping' element support current operation.

which forcing me create dummy stored procedure on db , use delete function, ugly solution.

is there better solution?


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -