Typed Dataset - How To Generate

VS 2003 was simple. 

Create xml data, right click generate schema, right click and generated typed dataset.

How do I do this in 2005

Dave


Answer this question

Typed Dataset - How To Generate

  • pradm

    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.

  • dlypka

    Right click->Open With...->Dataset Designer
    and also set "Custom Tool" property to "MSDataSetGenerator"

  • Iago

    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.
  • KevinSwiss

    I am in a similar situation.  I have a large, detailed XML schema from a legacy application that I need to use to create a typed dataset.  It would be a major effort to recreate this from scratch in the designer.  VS2003 had this kind of capability.  What happened to it in VS2005


  • chamal

    When you have XSD file you can create Typed DataSet by using XSD.exe utility.

    It is a part of Framework SDK.



  • hungfut

  • lcubian

    Thanks for all the replies, but I don't have a database I want to drag and drop tables and such from.  I want to created a typed dataset based on nothing and then use it to store information.

    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

  • Vish - Ganini

     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.

  • bauts

    I'm in the same boat.  The online docs refer to a "Generate Dataset" command on the Schema menu, as was the case in VS 2003.  I see no such command on the Schema menu in VS 2005 Beta 2.  Any suggestions would be greatly appreciated.
  • krompo

     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.)

  • Typed Dataset - How To Generate