How to get original Entity from ChangeTracker

前端 未结 4 1939
执笔经年
执笔经年 2021-02-04 11:50

Is there a way to get the original Entity itself from the ChangeTracker (rather than just the original values)?

If the State is Modified<

4条回答
  •  花落未央
    2021-02-04 12:49

    I would suggest clone entities on materialization and attach them to second context to keep whole original objects graph (if you need it of course). You can make them all ICloneable by modifying T4 template.

提交回复
热议问题