B
Barbelith
Hello
I'm pretty new to ADO.Net and I'm still a little confused about some
things, I hope I can make myself clear.
I'm writing a data-centric web application using ASP.Net, based on a
SQL Server 2000 database.
I have a table called Person that I'll take as an example of how I
access data.
I build a dataadapter that access a stored procedure and returns the
data into a dataset.
i take the datatable and pass it to a custom business object that i
use as a PersonCollection.
If I want a certain person i query the table and return a datarow that
I wrap inside a custon Person object, with properties that wrap the
datarow fields.
What i want wo know is: how do I update 2 or three of my wrapped
tables inside the same transaction using COM+?
I'm a litte confused about this.
I can update the fields inside the datarows and the write back the
changes using a dataadapter using its Updatestatement.
But as far as I know a COM+ transaction abort will not affect the
datarows rowstate attributes.
I'm not sure I make mayself clear here, I guess I'm just looking for
beste practices to update several datatables inside the same
transaction using COM+, maybe someone knows what I'm talkong about and
can help
Thanks in advance,
PL
I'm pretty new to ADO.Net and I'm still a little confused about some
things, I hope I can make myself clear.
I'm writing a data-centric web application using ASP.Net, based on a
SQL Server 2000 database.
I have a table called Person that I'll take as an example of how I
access data.
I build a dataadapter that access a stored procedure and returns the
data into a dataset.
i take the datatable and pass it to a custom business object that i
use as a PersonCollection.
If I want a certain person i query the table and return a datarow that
I wrap inside a custon Person object, with properties that wrap the
datarow fields.
What i want wo know is: how do I update 2 or three of my wrapped
tables inside the same transaction using COM+?
I'm a litte confused about this.
I can update the fields inside the datarows and the write back the
changes using a dataadapter using its Updatestatement.
But as far as I know a COM+ transaction abort will not affect the
datarows rowstate attributes.
I'm not sure I make mayself clear here, I guess I'm just looking for
beste practices to update several datatables inside the same
transaction using COM+, maybe someone knows what I'm talkong about and
can help
Thanks in advance,
PL