Typed dataset and adapters

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Clive Dixon

    Typed dataset and adapters

    I want to create a typed dataset via Visual Studio but I don't want any of
    the SQL adapters stuff. I just want a typed dataset, no need to connect to a
    database. How can I stop Visual Studio from generating all that stuff?


  • Alberto Poblacion

    #2
    Re: Typed dataset and adapters

    "Clive Dixon" <clived at digita dot comwrote in message
    news:uSczV9YHJH A.4884@TK2MSFTN GP03.phx.gbl...
    >I want to create a typed dataset via Visual Studio but I don't want any of
    >the SQL adapters stuff. I just want a typed dataset, no need to connect to
    >a database. How can I stop Visual Studio from generating all that stuff?
    This is one way in which you can do it:
    In Visual Studio 2008, Add a New item to your project. Select DataSet,
    and name it whatever.xsd. You get a blank, blue-colored, design surface.
    Right-click on the surface and select "Add Table". Then configure your table
    by adding columns. This will generate only the table in the dataset, without
    any tableadapters.

    Comment

    • Clive Dixon

      #3
      Re: Typed dataset and adapters


      "Alberto Poblacion" <earthling-quitaestoparaco ntestar@poblaci on.orgwrote
      in message news:%2300WpMZH JHA.1156@TK2MSF TNGP05.phx.gbl. ..
      "Clive Dixon" <clived at digita dot comwrote in message
      news:uSczV9YHJH A.4884@TK2MSFTN GP03.phx.gbl...
      >>I want to create a typed dataset via Visual Studio but I don't want any of
      >>the SQL adapters stuff. I just want a typed dataset, no need to connect to
      >>a database. How can I stop Visual Studio from generating all that stuff?
      >
      This is one way in which you can do it:
      In Visual Studio 2008, Add a New item to your project. Select DataSet,
      and name it whatever.xsd. You get a blank, blue-colored, design surface.
      Right-click on the surface and select "Add Table". Then configure your
      table by adding columns. This will generate only the table in the dataset,
      without any tableadapters.
      >
      Thanks for the suggestion, but I am working with a pre-existing database
      with many tables - manual creation is not an option. I want to be able to
      autogenerate my dataset by drag drop, but I don't want any adapter code with
      it. I was hoping there would be some setting somewhere to stop this being
      generated.


      Comment

      Working...