Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. TableAdapter info

TableAdapter info

Scheduled Pinned Locked Moved ASP.NET
tutorialcomhelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    robert110
    wrote on last edited by
    #1

    Hello everyone: I need to get some information about TableAdapters programatically. When I create a new instance of my DataSet like this: DataSet ds = new DataSet(); ds.ReadXmlSchema(MyDataSetFile); I can retrieve the information about DataTables but I dont see a way to retrieve information about TableAdapter. Any Ideas how to do it? In an MSDN[^] article, it says to get to TableAdapter we will need a new instance of the TableAdapter and then it gives this example: NorthwindDataSet northwindDataSet = new NorthwindDataSet(); NorthwindDataSetTableAdapters.CustomersTableAdapter customersTableAdapter = new NorthwindDataSetTableAdapters.CustomersTableAdapter(); customersTableAdapter.Fill(northwindDataSet.Customers); In my case I dont know which DataSet I will be working with untill runtime. Please help. Thanks. Regards, Robert

    N S 2 Replies Last reply
    0
    • R robert110

      Hello everyone: I need to get some information about TableAdapters programatically. When I create a new instance of my DataSet like this: DataSet ds = new DataSet(); ds.ReadXmlSchema(MyDataSetFile); I can retrieve the information about DataTables but I dont see a way to retrieve information about TableAdapter. Any Ideas how to do it? In an MSDN[^] article, it says to get to TableAdapter we will need a new instance of the TableAdapter and then it gives this example: NorthwindDataSet northwindDataSet = new NorthwindDataSet(); NorthwindDataSetTableAdapters.CustomersTableAdapter customersTableAdapter = new NorthwindDataSetTableAdapters.CustomersTableAdapter(); customersTableAdapter.Fill(northwindDataSet.Customers); In my case I dont know which DataSet I will be working with untill runtime. Please help. Thanks. Regards, Robert

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      TableAdapters are designer-generated components.


      only two letters away from being an asset

      1 Reply Last reply
      0
      • R robert110

        Hello everyone: I need to get some information about TableAdapters programatically. When I create a new instance of my DataSet like this: DataSet ds = new DataSet(); ds.ReadXmlSchema(MyDataSetFile); I can retrieve the information about DataTables but I dont see a way to retrieve information about TableAdapter. Any Ideas how to do it? In an MSDN[^] article, it says to get to TableAdapter we will need a new instance of the TableAdapter and then it gives this example: NorthwindDataSet northwindDataSet = new NorthwindDataSet(); NorthwindDataSetTableAdapters.CustomersTableAdapter customersTableAdapter = new NorthwindDataSetTableAdapters.CustomersTableAdapter(); customersTableAdapter.Fill(northwindDataSet.Customers); In my case I dont know which DataSet I will be working with untill runtime. Please help. Thanks. Regards, Robert

        S Offline
        S Offline
        sanju0276
        wrote on last edited by
        #3

        I think, you need to creat typed DataSet to work with Table Adpater programmtically ........which will be generated code... Sonny... Sanjeev

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups