Query: Additional function mapping capabilities
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 20/100
Research direction
This is an umbrella issue covering several database-function mapping capabilities rather than one scoped change. Start by reviewing the unchecked linked issues, including #13239, #20093, #9810, #20363, #11850, #20052, and #19970, to identify a specific task. Done would require completing one capability and marking the corresponding item resolved.
Written by the indexing model from the issue text.
Description
This would allow functions in the database to be used in LINQ queries. This includes:
- Collection-valued composable functions, such as TVFs in SQL Server (#20051)
- Composable functions with table valued parameters (#13239)
- Support queries with complex expressions in parameters (#20093)
- Scalar composable functions (addressed by #7368)
- Scalar collection composable functions (#9810, #20363)
- User-defined aggregate functions (#11850, #20052)
- #31871
We could support a number of patterns for this:
- Map functions to CLR methods (addressed by #9755)
- Using fluent API
- Using an attribute
- Ad-hoc invocation of SQL fragment in LINQ queries
- Map entity types to functions without a stand-in method
- Support complex entity type to function mapping (#19970)
- Map properties to functions, e.g. enable entities to have calculated properties that evaluate to calling a function with the entity key as the argument
- Map navigations to functions
Once database functions can be mapped to methods, we could accept those methods in other places besides LINQ queries, e.g. to specify default values, in set based updates (once we have the feature), etc.
- Dominant language
- C#
- Stars
- 14.8k
- Forks
- 3.4k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 134
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dotnet/efcore
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
-
customer-reported
Difficulty 5/5 Over a week Newbie friendliness 38/100
-
area-cosmos area-vector-search
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
area-cosmos
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
area-tools needs-design
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
:watch: Not Triaged 11.0 fundamentals/subsvc
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
dotnet/AspNetCore.Docs#37699 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
SubtitleEdit/subtitleedit#15108 · 1 comment ·
-
area/docs-content Bug pulumi/docs
Difficulty 1/5 1-3 hours Newbie friendliness 94/100
-
agentic-workflows untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 76/100