asp.net mvc - Store update, insert, or delete statement affected an unexpected number of rows (0).Refresh ObjectStateManager -


this issue driving me crazy last 1 week. please help.

store update, insert, or delete statement affected unexpected number of rows (0). entities may have been modified or deleted since entities loaded. refresh objectstatemanager entries.

public actionresult add(user userdetails) {     _userservice.insert(userdetails);     _unitofworkasync.savechanges(); // lines gives above error    } 

using maptosp technique inserting data db using ef code first approach.

this.maptostoredprocedures(e => e.insert(v => v.hasname("uspinsertuser"))); 


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -