diff --git a/porting-cheat-sheet.md b/porting-cheat-sheet.md index 00f36919f7..3258e97776 100644 --- a/porting-cheat-sheet.md +++ b/porting-cheat-sheet.md @@ -31,6 +31,13 @@ For .NET Framework projects it may be necessary to include the following in your ``` +## Functionality Changes + +| System.Data.SqlClient | Microsoft.Data.SqlClient | +|--|--| +| Can use DateTime object as value for SqlParameter with type `DbType.Time`. | Must use TimeSpan object as value for SqlParameter with type `DbType.Time`. | +| Using DateTime object as value for SqlParameter with type `DbType.Date` would send date and time to SQL Server. | DateTime object's time components will be truncated when sent to SQL Server using `DbType.Date`. | + ## Contribute to this Cheat Sheet We would love the SqlClient community to help enhance this cheat sheet by contributing experiences and challenges faced when porting their applications.