Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions porting-cheat-sheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ For .NET Framework projects it may be necessary to include the following in your
</configuration>
```

## 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`. |
Comment thread
cheenamalhotra marked this conversation as resolved.
| 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.