strongly typed dataset with xsd.exe

  • Thread starter Thread starter Daniel
  • Start date Start date
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
 
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).
 
we want to generically create DataSet's from xsd-schemata. Is that
possible in VS2005 without xsd.exe?

Best regards
Daniel
 
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).
 
Back
Top