Finished converter plugin

This commit is contained in:
2025-02-28 12:15:32 +01:00
parent 6c42008a28
commit 86ace64618
14 changed files with 231 additions and 90 deletions

View File

@@ -55,6 +55,11 @@ internal sealed class TableManager<TModel>(DbContext context, TableConfig config
await context.SaveChangesAsync();
}
public async Task<object?> GetOne(object key) {
var table = context.Set<TModel>();
return await table.FindAsync(key);
}
public async Task RevertChanges(object item) {
var entry = context.Entry((TModel)item);
await entry.ReloadAsync();