The 5th annual nopCommerce conference will take place in India on the 10th-11th of October. Please find more about this event here

CRUD Operation DELETE not work

Posted: January 23, 2017 at 1:05 AM Quote #182037
I had add one table and mapped with database.

When i delete one record with that table i got one error "The object cannot be deleted because it was not found in the ObjectStateManager.".

I had pass data like below and delete function click.

userMaster.Id = 3;
_userMasterService.DeleteUser(userMaster);

Please help if anyone know.
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Posted: January 23, 2017 at 3:17 AM Quote #182043
I think there are some error in mapping with database.
Give me more information (class Entity and Class Map).
This post/answer is useful
0
This post/answer is not useful

Please login or register
to vote for this post.

(click on this box to dismiss)
Maurizio Polidori
nopCommerce certified developer
since November 26, 2016
Premium support services
  • Dedicated premium support services provided by core developers are intended for persons who run mission critical websites, work on projects with tight deadlines, or want to get dedicated support.
Professional services
  • Want to open a new store? Want to take your store to the next level? Need a custom extension? We can customize nopCommerce to fit your store perfectly. Request a quote to get started.