-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
modelBuilder.HasDbFunction on queryable function (of entities) overrides implicit ToTable for that entity #23408
Labels
area-model-building
breaking-change
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-enhancement
Milestone
Comments
maumar
changed the title
modelBuilder.HasDbFunction on queryable function (of entities) overrides ToTable
modelBuilder.HasDbFunction on queryable function (of entities) overrides ToTable for that entity
Nov 19, 2020
maumar
changed the title
modelBuilder.HasDbFunction on queryable function (of entities) overrides ToTable for that entity
modelBuilder.HasDbFunction on queryable function (of entities) overrides implicit ToTable for that entity
Nov 19, 2020
Note from triage: consider when to map to table automatically, or not, based on how the TVF and return type is used elsewhere. |
AndriySvyryd
added a commit
that referenced
this issue
Jun 4, 2021
Preserve null mappings in the model snapshot. Add non-generic ToSqlQuery overload. Output Fluent API for ToSqlQuery in the model snapshot. Fix SetFunctionName setting incorrect annotation. Fixes #23408
AndriySvyryd
added
the
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
label
Jun 4, 2021
This was referenced Jun 4, 2021
AndriySvyryd
added a commit
that referenced
this issue
Jun 4, 2021
Preserve null mappings in the model snapshot. Add non-generic ToSqlQuery overload. Output Fluent API for ToSqlQuery in the model snapshot. Fix SetFunctionName setting incorrect annotation. Fixes #23408
AndriySvyryd
added a commit
that referenced
this issue
Jun 4, 2021
Preserve null mappings in the model snapshot. Add non-generic ToSqlQuery overload. Output Fluent API for ToSqlQuery in the model snapshot. Fix SetFunctionName setting incorrect annotation. Fixes #23408
AndriySvyryd
added a commit
that referenced
this issue
Jun 4, 2021
Preserve null mappings in the model snapshot. Add non-generic ToSqlQuery overload. Output Fluent API for ToSqlQuery in the model snapshot. Fix SetFunctionName setting incorrect annotation. Fixes #23408
ghost
pushed a commit
that referenced
this issue
Jun 8, 2021
Preserve null mappings in the model snapshot. Add non-generic ToSqlQuery overload. Output Fluent API for ToSqlQuery in the model snapshot. Fix SetFunctionName setting incorrect annotation. Fixes #23408
The caution addressed in ef core document is still linking to this issue, should it be update with mentions to changes in ef core 6.0? |
This issue was closed.
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
area-model-building
breaking-change
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-enhancement
When trying to map tvf using
modelBuilder.HasDbFunction
, we strip the (by convention)ToTable
call.It makes sense if you use
modelBuilder.Entity<Foo>().ToFunction(...)
. but is a bit unintuitive when usingmodelBuilder.HasDbFunction. especially when the function has some arguments (which would indicate it's just a helper of some sort)
exception:
The text was updated successfully, but these errors were encountered: