How to tell if any entities in context are dirty with .Net Entity Framework 4.0

后端 未结 4 964
感情败类
感情败类 2020-12-14 18:07

I want to be able to tell if there is any unsaved data in an entity framework context. I have figured out how to use the ObjectStateManager to check the states of existing e

4条回答
  •  一向
    一向 (楼主)
    2020-12-14 18:13

    This article describes exactly what is needed to perform Change Tracking in the Entity Framework:

    Identity Resolution, State Management, and Change Tracking (Entity Framework) - MSDN

提交回复
热议问题