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

@@ -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; }
}
}