I have this
Public void CreateUser(params here)
{
CreateMembership(params here);
Users newUser = new Users();
newUser.UserId = 123456
Context.Users.insertOnSubmit();
Context.Submit();
}
public void CreateMembership(...)
{
Membership membership = new Membership();
membership.Something = "something";
Context.Membership.insertOnSumbit();
Context.Submit();
}
So what happen if the Users table submit fails how can I rol this back to delete the Membership stuff? Or can I setup my thing differently like only remove the Context.Submit() line out of the Membership method?
Then only one Submit gets called? Or do I have to do something else?