From c90066922611d5a9599090d6b8b86bef3bc2e1a5 Mon Sep 17 00:00:00 2001 From: hydrant Date: Sun, 4 Nov 2018 17:32:01 +0100 Subject: [PATCH] Timestamps only get set on inserting, not on updating --- Server/Entities/User.cs | 2 +- Server/Logs/BankAccountTransactionHistory.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/Entities/User.cs b/Server/Entities/User.cs index 3d118bab..6f488be3 100644 --- a/Server/Entities/User.cs +++ b/Server/Entities/User.cs @@ -28,7 +28,7 @@ namespace reallife_gamemode.Server.Entities [StringLength(64)] public string Password { get; set; } public int LogUserId { get; set; } - [DatabaseGenerated(DatabaseGeneratedOption.Computed)] + [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public DateTime RegistrationDate { get; set; } [EmailAddress] diff --git a/Server/Logs/BankAccountTransactionHistory.cs b/Server/Logs/BankAccountTransactionHistory.cs index 24426a7f..88146e6f 100644 --- a/Server/Logs/BankAccountTransactionHistory.cs +++ b/Server/Logs/BankAccountTransactionHistory.cs @@ -30,7 +30,7 @@ namespace reallife_gamemode.Server.Logs public int Fee { get; set; } [StringLength(32)] public string Origin { get; set; } - [DatabaseGenerated(DatabaseGeneratedOption.Computed)] + [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public DateTime Timestamp { get; set; } } }