locked
Entity RRS feed

  • Question

  • I currently using the entity framework with MVC, when tring to do an update,  the records getting updated in the application but not being updated in database. Can anybody explain this.

    Thanks

    Elliot

    Tuesday, January 18, 2011 5:51 PM

Answers

  • Hello Elliot,

     

    Welcome to the MSDN Forum and thank you for posting here.

    As I know, there are some reasons to cause this problem. One of them is because dataset is a disconnected cache of data. You should call Updata() method after adding or deleting. Like this:

            adapter.Update(dataset);

    If it doesn't work, could you please show us more details about your issue?

    I am looking forward to hearing from you.

     

    Have a nice day,


    Jackie Sun [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Proposed as answer by Jackie-Sun Friday, January 28, 2011 3:15 AM
    • Marked as answer by Jackie-Sun Monday, January 31, 2011 2:14 AM
    Wednesday, January 19, 2011 6:11 AM