Suppose I have a following Entity:
Code: Select all
public class User
    {
        [Key]
        public int Id { get; set; }
        public String Name{ get; set; }
        public DateTime LastOperationDate{ get; set; }
    }What I want to achieve is LastOperationDate to be server time, not my local machine time.
So what should I use instead of
Code: Select all
LastOperationDate = DateTime.Now