mbdavid / LiteDB

LiteDB - A .NET NoSQL Document Store in a single data file
http://www.litedb.org
MIT License
8.35k stars 1.22k forks source link

Add support for on-the-fly document upgrades #2489

Open JKamsker opened 3 weeks ago

JKamsker commented 3 weeks ago

This change would allow me to improve my library (https://github.com/JKamsker/LiteDb.Migration) significantly. The documents would then only be upgrades on load and not all at once.

JKamsker commented 3 weeks ago

This also addresses #2430

JKamsker commented 3 weeks ago

@pictos Thanks for the review, how did that slip through, that its a breaking change 😅 Reverted the breaking changes and updated your requested changes.

So in my latest commit i added a deserialization hook.

Upsides:

Downsides:

JKamsker commented 2 weeks ago

Some tests failed before which are succeding (not the tests i touched)...sooo...

@pictos Can we merge? 😅