Is there a way to indicate the DateTime object only has Date value?
<p>In the database, there are some field is TimeStamp and some are Date, which means some accept both Date and Time, some accept Date only.</p>

<p>I am trying to write a helper class that can generate the SQL by iternate through the data object's property, and generate proper SQL by the data type of the property.</p>

<p>So say, Table "SomeDateTimeTable" has TimeStamp field "A_TimeStamp" and Date field "A_Date"
Then my data object has two property, "public DateTime A_TimeStamp" and "public DateTime A_Date".</p>

<p>But because C# only has DateTime... My program can't distinguish is the DateTime property indicate the database field is TimeStamp or Date....</p>

<p>I wonder if there is anyway to acheive it?</p>

<p>I only can think of...either make another class that has DateTime parameter to indicate that's a Date type... Or check if the time is 00:00:00...</p>

<p>But both way seems.... not so smart? </p>
