Comparing the Compact DataSet with the Desktop DataSet


Comparing the Compact DataSet with the Desktop DataSet

The DataSet offering for the .NET Compact Framework has some notable omissions compared with the DataSet in the desktop .NET Framework. Specifically, developers are likely to notice these differences:

  • The Compact Framework DataSet has no ability to serialize itself to anything other than XML. That is, it does not implement the ISerializable interface in a way that does anything useful. In a related point, the DataSet is the only object in the .NET Compact Framework capable of serializing itself in any way.

  • The Clone() method is present, but using it on large DataSet s can cause performance problems.

  • Many overloads for supported methods have been cut.

  • The .NET Compact Framework is capable of reading Diffgrams, but it is assumed that the DataSet is empty when a Diffgram is read. There is no support for the notion of updating a populated DataSet with the information contained in a Diffgram. The reason for this is that the DataSet on the .NET Compact Framework is meant for use as a local, small cache of data. Trying to use a DataSet to hold a large database in memory and updating it by passing Diffgrams to it would yield completely unacceptable performance.



Microsoft.NET Compact Framework Kick Start
Microsoft .NET Compact Framework Kick Start
ISBN: 0672325705
EAN: 2147483647
Year: 2003
Pages: 206

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net