strongly typed dataset with xsd.exe

D

Daniel

Hi together,

I am trying to find out, how to create a strongly typed dataset with
xsd.exe and got some problems!

I get methods like...
protected PersonDataTable(
System.Runtime.Serialization.SerializationInfo info,
System.Runtime.Serialization.StreamingContext context) :
base(info, context)
{
this.InitVars();
}

The System.Runtime.Serialization seems not to be supported. What is the
correct way to throw those Serialization out? Is it possible?

Then I tried another way...
I compiled with xsdcf.exe, which should be capable for Compact
Framework. Ok, the only code is
using System.Runtime.Serialization;
this also won't compile of course! Now I just throw it out, is that ok?

Also, like I am totally new to the concept of datasets, the two
generated datasets look different. Why?

Greetings
Dani
 
I

Ilya Tumanov [MS]

xsd.exe is not compatible with NETCF and can not be used. You can generate
typed DataSet with VS 2005, however.
I don't know what "xsdcf.exe" is. You should consult whoever provided it to
you.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
D

Daniel

we want to generically create DataSet's from xsd-schemata. Is that
possible in VS2005 without xsd.exe?

Best regards
Daniel
 
I

Ilya Tumanov [MS]

Yes, it is supported (for NETCF V2 projects). Please add existing XSD file
to your project or add new item and choose DataSet.

Designers would generate typed DataSet code for you.


Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top