R
Rupes
I am trying to learn ASP.NET while writing a system in it and am
feeling a bit overwhelmed.
I have just read most of a book on ADO.NET. I will need to write a data
access layer for this system and it is more than likely that the data
access tier will have to be on a separate application server.
It would seem to me that it would make sense to pass a disconnected
object such as a DataSet back and forth between the web server and
application server using remoting. Since a DataAdapter is not user or
session specific this should not cause any problems.
As far as I can make out the only way to make use of the features of a
DataSet is to store the DataSet in the users session area. Then the
changes can be applied to the DataSet (not clear on how this is done)
and then the DataSet could be sent to the application server and a
DataAdaptor used to write the changes to the DB.
There are some places where I would like to use a DataReader to display
read only data. But this is a connected object. So if I understand this
right if I bound it to a control every call to read the next record
would go across the wire to the object on the application server?
Can anyone offer some insight into these issue or designing a DAL with
remoting in mind? Any links to good articles/examples also appreciated.
Thanks
Rupes
feeling a bit overwhelmed.
I have just read most of a book on ADO.NET. I will need to write a data
access layer for this system and it is more than likely that the data
access tier will have to be on a separate application server.
It would seem to me that it would make sense to pass a disconnected
object such as a DataSet back and forth between the web server and
application server using remoting. Since a DataAdapter is not user or
session specific this should not cause any problems.
As far as I can make out the only way to make use of the features of a
DataSet is to store the DataSet in the users session area. Then the
changes can be applied to the DataSet (not clear on how this is done)
and then the DataSet could be sent to the application server and a
DataAdaptor used to write the changes to the DB.
There are some places where I would like to use a DataReader to display
read only data. But this is a connected object. So if I understand this
right if I bound it to a control every call to read the next record
would go across the wire to the object on the application server?
Can anyone offer some insight into these issue or designing a DAL with
remoting in mind? Any links to good articles/examples also appreciated.
Thanks
Rupes