From 5e7105a74b28ba0a073f27240b110b329e2e85f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Furkan=20G=C3=BCng=C3=B6r?= Date: Thu, 5 Aug 2021 16:53:28 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Change=20Value=20Generator=20typ?= =?UTF-8?q?e=20for=20Update=20Date?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- samples/IronHook.Web/Context/SampleDbContext.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/IronHook.Web/Context/SampleDbContext.cs b/samples/IronHook.Web/Context/SampleDbContext.cs index 4115ec9..1da896a 100644 --- a/samples/IronHook.Web/Context/SampleDbContext.cs +++ b/samples/IronHook.Web/Context/SampleDbContext.cs @@ -45,8 +45,8 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) entity .Property(p => p.UpdateDate) - .HasValueGenerator() - .ValueGeneratedOnAddOrUpdate(); + .HasValueGenerator() + .ValueGeneratedOnAdd(); }); }