What's the difference between DbType.Time
and DbType.DateTime
?
#103914
Unanswered
tacosontitan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to mark a property with a custom attribute which takes a
DbType
to specify what the database type is for the property, and in this case my property is aTimeSpan?
:According to the documentation for
DbType
, this is the wrong member to mark with:I can't follow the recommended path of using
SqlDbType.Time
because it's not interchangeable withDbType
. Furthermore,DbType
defines a member namedDateTime
which causes further confusion:What's the difference between
DbType.Time
andDbType.DateTime
?Beta Was this translation helpful? Give feedback.
All reactions