Timestamps only get set on inserting, not on updating

This commit is contained in:
hydrant
2018-11-04 17:32:01 +01:00
parent 96c4e0d2b2
commit c900669226
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ namespace reallife_gamemode.Server.Entities
[StringLength(64)] [StringLength(64)]
public string Password { get; set; } public string Password { get; set; }
public int LogUserId { get; set; } public int LogUserId { get; set; }
[DatabaseGenerated(DatabaseGeneratedOption.Computed)] [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public DateTime RegistrationDate { get; set; } public DateTime RegistrationDate { get; set; }
[EmailAddress] [EmailAddress]

View File

@@ -30,7 +30,7 @@ namespace reallife_gamemode.Server.Logs
public int Fee { get; set; } public int Fee { get; set; }
[StringLength(32)] [StringLength(32)]
public string Origin { get; set; } public string Origin { get; set; }
[DatabaseGenerated(DatabaseGeneratedOption.Computed)] [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public DateTime Timestamp { get; set; } public DateTime Timestamp { get; set; }
} }
} }