Update DbOperations.Write.cs

This commit is contained in:
2025-12-04 15:17:11 +01:00
parent d4512f99d6
commit e4f81495e8
+1 -1
View File
@@ -75,7 +75,7 @@ public partial class DbOperations : IDbOperations
}
// create ID before-hand so interceptors can use it
if (!update)
if (!update && !model.Id.HasValue())
{
model.Id = await GenerateId(model);
}