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)]
public string Password { get; set; }
public int LogUserId { get; set; }
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public DateTime RegistrationDate { get; set; }
[EmailAddress]