We have created a table with few columns along with one DateTime column 'CreateOn' in SQL server 2008 R2 express. I do not want user to set this CreatedOn column value. Instead while Insertion or updation of record, Database date should be picked and be used to fill this column. Please suggest a solution.
Asked
Active
Viewed 18 times
0
-
possible duplicate of [Entity framework: StoreGeneratedPattern="Computed" property](http://stackoverflow.com/questions/5042327/entity-framework-storegeneratedpattern-computed-property) – Kajal Sinha Jun 26 '14 at 06:42
-
the suggested reply is not the exact match since I want date value to be set as Database date and NOT dateTime.Now – dotnetavalanche Jun 26 '14 at 10:04