-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Function StoreType is ignored for DateTime #27954
Labels
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
Milestone
Comments
Could be similar/related to #25980 |
Generated SQL after fix exec sp_executesql N'SELECT [m].[Id], [m].[SomeDate]
FROM [MyEntities] AS [m]
WHERE [dbo].[ModifyDate]([m].[SomeDate]) = @__date_0',N'@__date_0 datetime',@__date_0='2012-12-12 00:00:00' |
smitpatel
added
the
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
label
May 10, 2022
smitpatel
added a commit
that referenced
this issue
May 11, 2022
smitpatel
added a commit
that referenced
this issue
Sep 27, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area-query
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
I Have an Entity:
with configuration:
SQL scalar value function:
function [dbo].[ModifyDate] (@dt datetime) returns datetime
and a mapping to static method
LINQ to SQL query:
works correctly, but
fails with SqlException saying that it cannot convert string to a datetime.
The reason of SqlException is that ef core ignores function StoreType and converts 'date' to DateTime2
string representation 2011-05-15T18:54:00.0000000Z while in the first case it is 2011-05-15T18:54:00.000
The text was updated successfully, but these errors were encountered: