PC Review


Reply
Thread Tools Rate Thread

How can I create an xsd file out of a Dataset class file?

 
 
Babu Mannaravalappil
Guest
Posts: n/a
 
      3rd Aug 2003
Hi all,

I apologize for posting this question on two groups. I did not know
which one out of "XML" and "ADONET" groups, should I post this.

I would like to create an xsd file out of an existing dataset.cs file
that can be visually manipulated in the VS.NET Dataset Designer wizard
in VS.NET 2003 with .NET 1.1 and C#.

Here is the issue in more detail:

Using the wizard I can drag and drop tables on to the dataset designer
suface, set relations between tables etc. Now, this wizard generates
a typed DataSet class for me which is remarkable and beautiful. I
love Visual Studio. But here is my problem. I would like to cusomize
some of the characteristics of my dataset via editing the ".cs" file
that the wizard created for me. But if and when I modify anything in
the xsd designer surface, that overwrites the class file.

Is there a way that I can use the class file as a starting point and
reverse engineer to create an xsd file that I can just double click
and open in the dataset designer? That way, I think I can keep my
modifications to the class file and still have the visual designer
feature for my class.

How can I do it? Or can I do it at all?

Babu.
 
Reply With Quote
 
 
 
 
Chuck D
Guest
Posts: n/a
 
      4th Aug 2003
Assuming that you have already created and filled a DataSet "ds" somewhere
in your program, issue this command after that:

ds.WriteXmlSchema("Filename")

Then, bring "filename".xsd into the project, and you can use it as needed.

Chuck

"Babu Mannaravalappil" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi all,
>
> I apologize for posting this question on two groups. I did not know
> which one out of "XML" and "ADONET" groups, should I post this.
>
> I would like to create an xsd file out of an existing dataset.cs file
> that can be visually manipulated in the VS.NET Dataset Designer wizard
> in VS.NET 2003 with .NET 1.1 and C#.
>
> Here is the issue in more detail:
>
> Using the wizard I can drag and drop tables on to the dataset designer
> suface, set relations between tables etc. Now, this wizard generates
> a typed DataSet class for me which is remarkable and beautiful. I
> love Visual Studio. But here is my problem. I would like to cusomize
> some of the characteristics of my dataset via editing the ".cs" file
> that the wizard created for me. But if and when I modify anything in
> the xsd designer surface, that overwrites the class file.
>
> Is there a way that I can use the class file as a starting point and
> reverse engineer to create an xsd file that I can just double click
> and open in the dataset designer? That way, I think I can keep my
> modifications to the class file and still have the visual designer
> feature for my class.
>
> How can I do it? Or can I do it at all?
>
> Babu.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create an instance of user control in a class(simple) file notin Page class file? chandan Microsoft ASP .NET 2 3rd Dec 2007 06:01 AM
How do I create partial class to be nested under the main class file? Joseph Geretz Microsoft C# .NET 2 29th Mar 2007 03:42 AM
create *.cub file from DataSet GM Microsoft ADO .NET 1 3rd Jun 2006 08:53 PM
error while trying to create a class file out of an xsd file =?Utf-8?B?RGV2LU1T?= Microsoft Dot NET Framework 1 31st Jan 2004 01:37 PM
Accessing an XSD file as a dataset in a class HELP....... Chris Calhoun Microsoft C# .NET 0 3rd Dec 2003 02:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:43 PM.