none
Problem with saving to database using linq to sql RRS feed

  • Question

  • I have problem with saving to database

    I am creating desktop application using wpf. I used server based database and I am using linq to sql to connect to the database.

    I am able to retrive data from the database but when I use context.submitchanges() the data could not be saved to the database. 

     

    Note:

    I did not get any error and every thing fine but when i check the database nothing is updated 

    Saturday, January 14, 2012 10:02 AM

All replies

  • Hi amar bl;

    Please post the connection string found in the app.config file of the application. The issue may be one of a local database file and viewing the wrong database.

    Please see this link for information about Local Data Overview.

     


    Fernando (MCSD)

    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".
    Saturday, January 14, 2012 7:01 PM
  • Hi amar bl,

    Welcome to MSDN Forum.

    Could you please post the connection string and the code which you use to update the database here? This is, so we can help you more effectively.

    Best Regards


    Allen Li [MSFT]
    MSDN Community Support | Feedback to us
    Tuesday, January 17, 2012 2:00 AM
    Moderator