asp.net mvc 4 - Entity framework Delete model whitout track -
foreach (var memo in album.album_share_text) { album_share_textrepository album_share_textrepository = new album_share_textrepository(); album_share_textrepository.delete(memo); album_share_textrepository.savechanges(); }
i cant delete object cannot deleted because not found in objectstatemanager. @ system.data.objects.objectcontext.deleteobject(object entity, entityset expectedentityset) @ system.data.entity.dbset`1.remove(tentity entity)
i want evade
album_share_text album_share_text = new album_share_text(); album_share_text.id_album = memo.id_album;...
Comments
Post a Comment