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:
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
Post a Comment