Typed Dataset - How To Generate from XSD
Create xml data, right click generate schema, right click and generated typed dataset.
How do I do this in 2005?
Dave
Create xml data, right click generate schema, right click and generated typed dataset.
How do I do this in 2005?
Dave
I am now going to be REQUIRED to use the designer?
I'm more of a notepad kinda guy. I want to be able to type the
fields, right click and go.
Any thoughts are appreciated.
Dave
Chris Lovett wrote:
Just do Add New Item from your project and select DataSet. It is now typed by default so as you drag tables from your server explorer and drop them on the designer canvas the code is generated into a partial class in DataSet1.Designer.cs.
This works in "non-website"-projects. But how to generate a DS in a website-project? The only way i found is to do this in a temporary project (whit the same connection-configuration etc.)
I'm finding this a real problem in 05. I've imported an xsd file and would like to generate a typed dataset from it but it doesn't work with what has been suggested in this thread (designing in the dataset editor does not work or I'm missing something, which you to be simple in VS03). Any ideas?
Is this by design or has MS developers over looked this important functionality? From what I've experienced so far it is a step backwards for the software and is an extremely frustrating problem.
pugs wrote:
I'm also having this problem in VS 05. It was or used to be simple to generate a dataset from an *.xsd file. I'm finding this a real problem in 05. I've imported an xsd file and would like to generate a typed dataset from it but it doesn't work with what has been suggested in this thread (designing in the dataset editor does not work or I'm missing something, which you to be simple in VS03). Any ideas?
Is this by design or has MS developers over looked this important functionality? From what I've experienced so far it is a step backwards for the software and is an extremely frustrating problem.
Seems i was too fast: Put the xsd in the App_Code-Folder and "imagine it has been compiled" :)
It works. When writing code, simply type in the name of the DS and intellisense will show the rest (adapters, methods,...).
But: you will never see the compiled files (....Designer.cs) - they are in the asp.net-temps.
When you have XSD file you can create Typed DataSet by using XSD.exe utility.
It is a part of Framework SDK.