I am using asp.net SqlMembershipProvider and LinqToSql in a hobby / learning application. I have some user properties that I store in LinqtoSql, so my stream is: Membership.CreateUser -> MyClass.AddUserDetails. I would like to wrap all this in a transaction, so if the myclass bit fails, I can drop the membership bit. Any suggestions on how to do this?
source
share