how can check row in entities in table database or entity in Memory RRS feed

All replies

  • Which version are you using? If it is 4.3 or higher then you can just use the local property on the DbSet to get already loaded entities.

    //get local
    //query db

    Sunday, April 21, 2013 8:27 AM
  • no work

    my problem is a selected data from database using entity Framework and delete some rows  and adding a new rows 

    if i  save changed i using     _db.Entry(MyEnetity(index)).State = EntityState.Added

    the row in database Error the 

     Multiple instances of IEntityChangetracke

    but the row i add in list it's ok no Error 

    Sunday, April 21, 2013 8:50 AM
  • It would help to see the code you implemented where the exception occurred and the messages for the exception and inner exception.


    Fernando (MCSD)

    If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful".

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Sunday, April 21, 2013 1:27 PM