DataSet OR Dataview

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi,
I have a three tier application, I have a method in the datalayer which
should either return a (dataset or dataview or datrow), i need to know which
should be the best possible option, are there any links or documents which
can help me understand.

Thanx in advance.

Prasad
 
I don't know about specific articles, but there is one thing that we
learned the hard way that you you might want to know about. Dataset and
DataTable objects are serializable while DataView and DataRow objects
are not. If you are planning on crossing process boundaries (as when
you have physically separate tiers) you'll get non-serializable errors
unless you take special steps on your own to deal with this issue.

Have A Better One!

John M Deal
 
In order for a DataView to be of any use, it needs a reference to a
DataTable. You can always create a view locally, but as John mentioned,
Views aren't serializable so that's going to take a lot of fun out of trying
to remote them.

Go with a DataTable/DataSet
 
Back
Top