Dataset/TableAdapter designer doesn't seem to generate CRUD methods...

Last post 07-25-2008 6:17 AM by Thomas Sun – MSFT. 2 replies.

Sort Posts:

  • Dataset/TableAdapter designer doesn't seem to generate CRUD methods...

    07-19-2008, 6:14 AM
    • Loading...
    • dizzy0ny
    • Joined on 04-29-2008, 4:16 AM
    • Posts 70
    Hi,

    I am using the DataSet designer wizard and have a few questions. 
    I added a TableAdapter to the designer and assiged the Insert, Update, Delete and Select properties to my four CRUD stored procedures.  When i exit the wizard however, the only method i see that is shown is the GET method.   I tried examining the properties of that object in code and i don't see any means of accessing any wrappers to my stored procs for what i need.

    Am i missing something there?  How would i insert or delete a record?

    Also, if i am using custom business objects, which i intend to populate and pass back to my business tier.  I am assuming since i am not every going to be passing back a DataSet, i do not need that Fill method generated, correct?  can i simply uncheck that option during the wizard creation process?

    thanks.
  • Re: Dataset/TableAdapter designer doesn't seem to generate CRUD methods...

    07-24-2008, 2:45 AM
    Answer

    Hi,

    From your description, you want to create Insert, Update, Delete and Select method with TableAdapter using existed in the database.

    In your case, there is only Get method on TableAdapter. I guess you configure it incorrectly. For example, I want to create an UpDate method:

    1. Right Click TableAdapter.
    2. Select "Add Query.." fron context item.
    3. Check "Using existing stored procedure", and then click Next button.
    4. Select the stroed procedure that is used to update,  and then click Next button.
    5. You can choose what type the procedure will return. I choose "No value" for update. Then click Next button.
    6. Type a name you want, Click Finish button.

    Finish these steps, you will see the Update method in the TableAdapter.

    If you want to create your own method instead of created by TableAdapter automatically, you can uncheck it.

     

    I look forward to receiving your test results.

     

     

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
  • Re: Dataset/TableAdapter designer doesn't seem to generate CRUD methods...

    07-25-2008, 6:17 AM

    Hi,

    Currently I am marking this thread as “Answered”, if my reply does not help you resolve the problem, please feel free to unmark it. Please also provide more information and we will be glad to follow up.

     

    Thanks.

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Page 1 of 1 (3 items)
Microsoft Communities
Page view counter