ObjectContext.Refresh()?

后端 未结 4 2016
天涯浪人
天涯浪人 2020-11-30 06:15

How to update ALL the dirty entities from the data store, and reset their changed values to the original store value?

The method ObjectContext.Refresh requires as a

4条回答
  •  长情又很酷
    2020-11-30 06:28

    If you want to reset ALL the changes, you could set the ObjectContext to null and re-instantiate it.

    I believe this will achieve what you want.

    Kindness,

    Dan

提交回复
热议问题