<issue_start><issue_comment>Title: Get and set expected value for DdType.Date and DbType.Time
username_0: Breaks support for SQL Server 2008 (I believe)

fixes #5
<issue_comment>username_0: What happened to the CI builds?
<issue_comment>username_1: No changes done on our end, seems like another DevOps issue. Will open a ticket.
<issue_comment>username_0: Let me know if you want me to close and resubmit
<issue_comment>username_2: No, for SQL 2005. That is SQL 2008 which has introduced `date` and and `time` types into SQL-Server. So SQL 2008 should be fine with the change.

(I was speaking of a "pre 2008 legacy" for meaning a legacy of SQL-Server versions prior to 2008, aka SQL-Server 2005.)
<issue_comment>username_1: Both SQL 2005 and 2008 are now out of support cycle, so I think we're good :)
@username_0 the pipelines seem to work now, please give it a try by checking in some change.
<issue_comment>username_0: Pipeline unblocked!
<issue_comment>username_3: I've been trying to think about the behavior change around this to see if we would be introducing any subtle breaking changes to existing applications.

DateTimeTest.ReaderParameterTest has good coverage comparing the interactions of SqlDbType parameters against the DB, so I extended it to perform the same tests using DbType. What I found was that before this change, the "compatibility" code did enable passing DbType date and time data into and out of columns for pre SQL Server 2008 sources. But it also hobbled the use of DbType date and time columns in where parameters post 2008. (SqlDbType data is unaffected by this change.) It seems like it's just plain broken trying to use DbType.Date or DbType.Time as a parameter in a where clause.

So for an application to work around the above, if they kept using DbType (and not the SQL-specific SqlDbType), and they wanted to still use Date or Time columns in the database, I can't think of how they could have coded it. If they used SqlDbType, this change will not break them. If they used a different data type in the database, this change will not break them. I think this change simply fixes broken scenarios for 2008+.

I thought I'd add my analysis in case I'm wrong and this ends up breaking something.

I'll submit my DateTimeTest changes to your branch to be included in this PR.
<issue_comment>username_0: Could you explain the technical term "hobbled" at bit more? 😄
<issue_comment>username_3: It seems like the backward compatibility changes that you are removing broke the use of DbType.Date and DbType.Time parameters against 2008+ SQL Servers in the context of a where clause. The database will not implicitly cast between DateTime and Date/Time for comparison. I put comments in the test changes in my PR which show which lines would fail without the removal of the back-compat code. If you merge my PR into your branch, it should show up in this PR. You probably also need to merge the latest from master here into your branch, too.
<issue_comment>username_0: Branch merged