Have a look at System.Transactions.
---
Dominick Baier, DevelopMentor
http://www.leastprivilege.com
> hi,
> As title, i don't know whether dotnet synchorizes accesses to function
> MemberShip.UpdateUser especially when update the same user at the same
> time.
> Or, we need to implement synchorization ourselves?
> And, if i want to code in sequence like:
> ...
> MemberShip.UpdateUser();
> Role.AddUserToRole();
> ...
> how can i guarantee these two functions to be excuted as a atom?
>
> Thank in advance.
> -Joe Ca