System.DateTime maps to datetime2(7) in sql server wich is not optimal for storing date-only (without time) information.

SQL'92 has special Date type, for storing date-only.

It could be implemented by adding [DateOnly] or [DateWithoutTime] attribute for fields.

asked Oct 14 '15 at 04:16

k_v_kuznetsov's gravatar image

k_v_kuznetsov
34226


One Answer:

Hello

Thanks for idea. If the feature is popular on dataobjects.uservoice.com we'll implement it in one of versions.

Update: We added this to the the feature list to implement. I'm not sure in which version it will be included for now, probably in one of 5.1.0 Betas

answered Oct 27 '15 at 04:09

Alexey%20Kulakov's gravatar image

Alexey Kulakov
77225

edited Jul 12 '16 at 04:45

Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

Subscription:

Once you sign in you will be able to subscribe for any updates here

Tags:

×6
×3

Asked: Oct 14 '15 at 04:16

Seen: 35,030 times

Last updated: Jul 12 '16 at 04:45

powered by OSQA