-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Limited DateOnly C# support when using SqlParameter.Structured #2209
Labels
💡 Enhancement
Issues that are feature requests for the drivers we maintain.
Comments
@PK-ByTE thank you for bringing this up. We will look into this and will update you. |
/cc @ErikEJ |
ErikEJ
added a commit
to ErikEJ/SqlClient
that referenced
this issue
Dec 6, 2023
…arameter Also makes some tests run on machines in winter outside UTC time zones :-D fixes dotnet#2209
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
C# DateOnly not supported when using SqlParameter.Structured (Datatable)
Current .net 8 rc2 works with DateOnly type when passing DateOnly values to sql procedure like so:

But if we try to pass the DateOnly as udtt via SqlParameter.Structured we get an error like so:

To reproduce
Program.cs
TestAppSimple.cs
sql - udttDateOnly
sql - spTestDateOnlyUdtt
sql - spTestDateOnly
Expected behavior
SqlParameter.Structured should pass the provided/populated udtt to the sql procedure.
Further technical details
Microsoft.Data.SqlClient version: 5.2.0-preview3.23201.1
.NET target: 8.0.100-rc.2.23502.2
SQL Server version: SQL Server 16.0.1105.1
Operating system: Windows 11 Business 23H2
The text was updated successfully, but these errors were encountered: