These are the release notes for Fling (the main package). See RELEASE_NOTES_Fling.Interop.Facil.md for the release notes for Fling.Interop.Facil.
- Fixed bug introduced in 0.5.0 where
...WithoutUpdate
functions would throw even if there was nothing to update
- Breaking (hopefully not in practice): For to-many child entities, all deletes are performed first, then all updates, then all inserts. The previous behavior was deletes first, then each new child (in the order returned by your code) was either inserted or updated.
- Added
batchSaveChildren*
functions for batching inserts/updates/deletes of to-many children
- Breaking:
runLoader
is renamed toloadParallelWithoutTransaction
- Breaking:
runBatchLoader
is renamed toloadBatchParallelWithoutTransaction
- Added
loadSerialWithTransaction
- Added
loadBatchSerialWithTransaction
- Target .NET 6
- Added
...WithDifferentOldNew
variants of all child save functions that allows specifying a separatetoDto
function for the old and new entity. This can be useful for example if you are persisting computed state. You can load the existing persisted state from the DB together with your entity, and when persisting, you can compare the persisted state from the old entity with the new computed state based on the new entity.
- Added
saveChildWithoutUpdate
,saveOptChildWithoutUpdate
, andsaveChildrenWithoutUpdate
for child entities that don’t support update (e.g. association tables, where the key is essentially the whole DTO).
- Breaking:
saveRoot
now takes insert/update functions that returnAsync<unit>
. For the old signature, use the new functionsaveRootWithOutput
.
- Initial release