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.

source: msdn official data type mappings list


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -