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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -