diff --git a/zero.Sqlite/Operations/DbOperations.Write.cs b/zero.Sqlite/Operations/DbOperations.Write.cs index 85be9cd3..bf1190a6 100644 --- a/zero.Sqlite/Operations/DbOperations.Write.cs +++ b/zero.Sqlite/Operations/DbOperations.Write.cs @@ -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); }