Best way to handle dirty state in an ORM model

后端 未结 3 2012
星月不相逢
星月不相逢 2020-12-03 13:06

I don\'t want anyone saying \"you should not reinvent the wheel, use an open source ORM\"; I have an immediate requirement and cannot switch.

I\'m doing a l

3条回答
  •  眼角桃花
    2020-12-03 13:28

    though this post is old BUT how about using events to notify listeners when isDirty() happens? I would approach the solution with events.

提交回复
热议问题