EntityState.Modified SaveChanges Not working RRS feed

  • Question

  • Hi

    I'm using Entity Framework v1 and VS 2008.

    From what I read on the internet articles I understand that the modified entity need only SaveChanged(true) after modifying its properties to be updated in the database.But in my case nothing happened I even don't get an exception.SaveChanged return 0 and the changes I made are not saved in the database?!.

    The Entity I'm modifying is a child entity in one to many relation.

    I realy don't know what should I do?.


    I am too late but i will never give up
    Saturday, July 10, 2010 11:07 AM


  • Never mind I found that I wasn't using the Object Context correctly in my n-tier code.But I'm looking for a better solution so I don't use more than one object context because this cause connecting to the database two times.
    I am too late but i will never give up
    Sunday, July 11, 2010 10:57 AM