Groups | Blog | Home
all groups > dotnet general > november 2004 >

dotnet general : DataSet OR Dataview


Prasad Patil
11/7/2004 9:06:05 PM
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.

John M Deal
11/7/2004 9:23:42 PM
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

[quoted text, click to view]
W.G. Ryan eMVP
11/8/2004 12:33:23 AM
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

--
W.G. Ryan MVP (Windows Embedded)

TiBA Solutions
www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
[quoted text, click to view]

AddThis Social Bookmark Button