I have the following dto:
public class File
{
[AutoId]
public Guid Id { get; set; }
[Required]
public string Name { get; set; }
[Default(OrmLiteVariables.SystemUtc)]
public DateTime Created { get; set; }
[Default(OrmLiteVariables.SystemUtc)]
public DateTime? Updated { get; set; }
}
I want Created to be set only on Insert (this is working) and Updated to be only set on Updates (this isn’t working). Using PostgreSQL dialect.