G
Guest
Hi
I have a problem on how to span a transaction over multiple business classes
without using COM+
Example:
A existing person get an MailingAddress assigned to
public class PersonService
{
public void InsertMailingAddress(data)
{
//ask the AddressService to insert an address
new AddressService().InsertAddress();
//update the person with the ID from the newly inserted address
}
}
As you can see, this should be in a transaction --> Insert Address -->
Update Person
How can i span this in a transaction without passing sqltransaction objects
in the businesslayer?
Any ideas???
I have a problem on how to span a transaction over multiple business classes
without using COM+
Example:
A existing person get an MailingAddress assigned to
public class PersonService
{
public void InsertMailingAddress(data)
{
//ask the AddressService to insert an address
new AddressService().InsertAddress();
//update the person with the ID from the newly inserted address
}
}
As you can see, this should be in a transaction --> Insert Address -->
Update Person
How can i span this in a transaction without passing sqltransaction objects
in the businesslayer?
Any ideas???