-
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
Query: Infer type mapping from IDbFunction while translating #27995
Conversation
src/EFCore.Relational/Metadata/Conventions/ScalarDbFunctionTypeMappingConvention.cs
Outdated
Show resolved
Hide resolved
de7a8d0
to
0b4dbbe
Compare
0b4dbbe
to
c52afa0
Compare
modelBuilder | ||
.HasDbFunction(typeof(MyEntity).GetMethod(nameof(MyEntity.Modify))) | ||
.HasName("ModifyDate") | ||
.HasStoreType("datetime") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😿
Not easy to override this for databases which don't have a datetime
store type... In any case, this test seems a bit SQL Server-specific, do we want to move it there?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HasStoreType(null)
should work
Resolves #27954
Resolves #27524