Discover errors in your .NET app you never knew were happening and use detailed error reports to squash them with ease. Make your app Exceptionless!
Sign up for FREE!
Consider the following scenario where in master and child tables are updated during insert transaction:
Master Table: Employee
(step 1) First Insert in Master table:
Employee objEmployee=new Employee();
Child Table: EmpEmail
(Step 2) First Insert in child table:
EmpEmail objEmpEmail=new EmpEmail();
(Step 3) First Insert in child table:
What set of templates are you using? In our CSLA templates we pass the parent to the child along with the connection object which already has a transaction.
CodeSmith Tools, LLC. Software Development Engineer
.NetTiers team | Visit http://www.nettiers.net
Can you please provide the sample code for the same?
A sample of this can be found here. Please download a sample from the link and then look in the .DataAccess partial classes of an entity like Supplier or Products in the Business Project.