Review der Codebase

This commit is contained in:
admin committed 2026-08-13 19:57:48 +02:00
1 parent d987b93315
commit 27359794f7
9 files changed
+269 -80

No files matched your search

+15
View File
@@ -60,6 +60,21 @@ public class LiteDbContext : IDisposable
public int SchemaVersion => ReadSchemaVersion();
internal void ExecuteInTransaction(Action action)
{
_db.BeginTrans();
try
{
action();
_db.Commit();
}
catch
{
_db.Rollback();
throw;
}
}
private void RunVersionedMigrations()
{
var version = ReadSchemaVersion();