entity framework - ORM or Database that works like version control and tracks history -
entity framework - ORM or Database that works like version control and tracks history -
this random thought wondering about. there orm's or databases natively back upwards tracking history? i'm envisioning each row has compound primary key id , version. update "append" new row same id , next available version number. normal select returns recent version of uniquely identified row, "selecthistory" homecoming rows. delete natively soft delete.
given not new problem , there's nil new under sun, nail me there's high probability has designed elegant solution abstracts hard parts of away, , done @ either database layer or orm layer.
i have existing application built on entity framework. overrides savechanges method of dbcontext set createdby/createddate/modifiedby/modifieddate properties each new/changed entity. client asked how much work involve add together total history tracking. gave them reasonable estimate based on past experience similar systems. estimate involved adding additional entities model , business layer logic populate entities. client decided not pursue work, got me wondering if there improve way. there improve solution entity framework? there improve solutions other architectures?
what describe form of multi-version concurrency control. typically mvcc used under covers database implementation avoid having lock during read-only transactions, can made explicit suggest. there's give-and-take of different options implementing explicit mvcc in this question. if you're tracking createddate each version, you've got need temporal database.
database entity-framework orm
Comments
Post a Comment