Is there a way to just put an attribute to a method so that the whole code in the method is executed in a transaction scope? I've seen this done in sharp architecture but I'm using Linq to sql not nhibernate. Thanks!
This what I would like to do:
[Transaction]
public void InsertCustomer(Customer customer)
{ //insert customer }
So that the body of the method executes in a transaction scope.