Update Database structure after Strongly-Typed DataSet is built

Last post 06-27-2007 8:51 AM by Matt-dot-net. 5 replies.

Sort Posts:

  • Update Database structure after Strongly-Typed DataSet is built

    06-09-2007, 11:33 AM

    This is my first 3 tier application... I'm using a Stongly Typed Dataset as DAL. After everything was finished, I realized I had to make 2 changes to the database:

    1- Add a new column

    2- Change a SQL Data type from int to Bool

    What is the best way to update my Strongly Typed Dataset and make sure everything will work fine?

     Thanks,

     

    Rubens
     

  • Re: Update Database structure after Strongly-Typed DataSet is built

    06-09-2007, 3:37 PM
    Answer

    In the DataSet designer, right click on the DataTable object that has changed and click configure.  Walk through this wizard to the end, and it should update all of your methods.  After a rebuild, you might see some errors complaining about "No overload accepts x number of parameters," which is what you want to see.

  • Re: Update Database structure after Strongly-Typed DataSet is built

    06-23-2007, 5:48 PM
    Answer

    Thanks for your reply.

    The Data Set was updated, however the stored procedures were not. Do I have to update them manually?

     

     

  • Re: Update Database structure after Strongly-Typed DataSet is built

    06-25-2007, 9:51 AM
    Answer

    you can update them manually... or you can delete them and run through the wizard again to re-create them.

  • Re: Update Database structure after Strongly-Typed DataSet is built

    06-26-2007, 9:57 PM

    Thanks Matt!

    How about the .xsd file and the classes that are created by Visual Studio? Should I delete them as well?

  • Re: Update Database structure after Strongly-Typed DataSet is built

    06-27-2007, 8:51 AM
    Answer

    Nah, the wizard will bring them up to date.

Page 1 of 1 (6 items)
Microsoft Communities
Page view counter