Skip to content

Commit

Permalink
🐛 Change Value Generator type for Update Date
Browse files Browse the repository at this point in the history
  • Loading branch information
furkandeveloper committed Aug 5, 2021
1 parent 3df2041 commit 5e7105a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/IronHook.Web/Context/SampleDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)

entity
.Property(p => p.UpdateDate)
.HasValueGenerator<GuidGenerator>()
.ValueGeneratedOnAddOrUpdate();
.HasValueGenerator<DateTimeValueGenerator>()
.ValueGeneratedOnAdd();
});
}

Expand Down

0 comments on commit 5e7105a

Please sign in to comment.