I have a simple method that inserts a row into one of our tables using entity framework. However, that table has a trigger than manipulates the row as soon as it's inserted. This seems to be making entity framework by producing the error "Store update, insert, or delete statement affected an unexpected number of rows (0)". How can I correct this?
using (var supportContext = new SupportContext(CustomerId))
{
var mobileUser = new AcctMobileUser
{
amu_user_id = userId
};
supportContext.AcctMobileUsers.Add(mobileUser);
await supportContext.SaveChangesAsync();
}