c# - In my model, what element type do I use for a SQL table column of type smalldatetime? -
i have table dates
columns fileid
of type int
, dtime
of time smalldatetime
. meant keep track of date , time file uploaded. should ???
in following piece of model? should string, , if so, have parse string use (e.g. if have functionality in server deleting files on 30 days old)?
[table(name = "dates")] public class date { public date() { } [column] public int fileid { get; set; } [column] public ??? dtime { get; set; } }
just use datetime.
Comments
Post a Comment