1
Is there any typing that already treats this in C# to perform persistence in Sqlserver database?
I need to resolve the Createdat and Updatedat property. For each change, it will be stored in the database.
public class UserBaseEntity
{
[Key]
[ScaffoldColumn(false)]
public int Id { get; set; }
[Timestamp]
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
}
The signature on the property would solve this case?
I use for both Createat and Updateat, right?
– Thiago Cunha
Yes @Thiagocunha, I didn’t add why you didn’t add [Timestamp] to this field so I wasn’t sure if you wanted it this way either.
– George Wurthmann
Vlw... Thank you! :)
– Thiago Cunha