I am trying to add a CreatedDate property to entities in my Model and am using EF5 Code First. I want this date to not be changed once set, I want it to be a UT
CreatedDate
Accounts account; account.Acct_JoinDate = DateTime.Now.ToUniversalTime(); data.Accounts.Add(account); data.SaveChanges();
Why not give the timestamp upon model creation? Similar to these accounts here.