473,472 Members | 1,728 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

serialization, object within a dataset

Hi,
I've defined a DataTable, and one of the columns is a type of a class
that I created. that DataTable is added to a DataSet, which is
serialized as an XML. problem is, when I load it back, those objects
that i saved in the DataTable are not serialized (all i sget is a
string which is the class name) is there any easy solution to that? (i
mean, i can serialize these objects separate, outside of the
datatable... but i am wondering if somehow i could cause the solution
to work as-is)

thanks

Aug 1 '06 #1
2 980

<yo**@nobhillsoft.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
Hi,
I've defined a DataTable, and one of the columns is a type of a class
that I created. that DataTable is added to a DataSet, which is
serialized as an XML. problem is, when I load it back, those objects
that i saved in the DataTable are not serialized (all i sget is a
string which is the class name) is there any easy solution to that? (i
mean, i can serialize these objects separate, outside of the
datatable... but i am wondering if somehow i could cause the solution
to work as-is)
Are there public properties on the object? It won't serialize private ones
by default.

David

Aug 1 '06 #2
Yes. this object already serializes independantly. but when inside a
datatable, it doesnt. it doesnt Like i said, it doesnt even try to
serialize it. all i get back is a string with the type name. How is
DataSet serializes columns of user -defined types? anybody can point me
to more documentation on this issue? thanks!

David Browne wrote:
<yo**@nobhillsoft.comwrote in message
news:11**********************@i42g2000cwa.googlegr oups.com...
Hi,
I've defined a DataTable, and one of the columns is a type of a class
that I created. that DataTable is added to a DataSet, which is
serialized as an XML. problem is, when I load it back, those objects
that i saved in the DataTable are not serialized (all i sget is a
string which is the class name) is there any easy solution to that? (i
mean, i can serialize these objects separate, outside of the
datatable... but i am wondering if somehow i could cause the solution
to work as-is)

Are there public properties on the object? It won't serialize private ones
by default.

David
Aug 1 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ofer | last post by:
Hi, I am working with the beta version of the new .net framework (Whidbey) and I encountered a problem with serialization that did'nt exist in the .net 2003 the situation is like this : I have...
0
by: HakonB | last post by:
Hi all I get an exception when trying to deserialize a simple configuration file using XML Serialization. The very long stacktrace can be seen at the bottom of this message. I've see other...
4
by: hs | last post by:
Hi I am serializing a dataset using a binary formatter as follows: IFormatter formater = new BinaryFormatter(); formatter.Serialize(stream, ds); // ds=DataSet, stream=MemoryStream .... DataSet...
2
by: ofer | last post by:
Hi, I am working with the beta version of the new .net framework (Whidbey) and I encountered a problem with serialization that did'nt exist in the .net 2003 the situation is like this : I have...
4
by: Brian Keating | last post by:
wonder if anyone can help me here, i've a framework 1.1 dataset which i serialize in framework 1.1 and deserialize in framework 2.0. This is fine, problem is that i want to modify some of the...
8
by: vinay | last post by:
Hi Guys I want to understand Serialization. What is serialization. When do we need to use?? What are advantages and Disadvantages. Also please diret me to some good sites on serialization....
1
by: elziko | last post by:
My intention is to store an array of singles inside a DataTable so that it can me peristed somehow, maybe XML file, maybe Access/SQL Server I don't know yet so I'm just saving it as an XML file for...
4
by: Val | last post by:
I have a complex object that I need to serialize. Rather than rely on a standard routine, which is called during the serialization/deserialization, I would like to be able to use my own functions...
0
by: jb489 | last post by:
Hi all, Hope I am posting this in the right forum. I seem to be having a problem when using serialization and web services. <b>Scenario:</b> I have built a web service which includes a...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.