Skip to content
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

Cosmos: Support UDFs #15338

Open
TomasHubelbauer opened this issue Apr 12, 2019 · 2 comments
Open

Cosmos: Support UDFs #15338

TomasHubelbauer opened this issue Apr 12, 2019 · 2 comments

Comments

@TomasHubelbauer
Copy link

I am wondering whether there is an attribute or a fluent API method that would allow me to tell EF Core to map an entity property to a result of a UDF invoked with that document as a parameter so that a context of the collection could be used to compute the value of the property from other documents in the collection.

Specifically, something like this:

SELECT {{ firstName: item.FirstName, lastName: item.LastName, test: udf.test(item) }} FROM AppDbContext item

As opposed to something like this which I assume the Cosmos provider already generates:

SELECT {{ firstName: item.FirstName, lastName: item.LastName, test: item.Test }} FROM AppDbContext item

Further technical details

EF Core version: Microsoft.EntityFrameworkCore.Cosmos 2.2.4
Database Provider: Microsoft.EntityFrameworkCore.Cosmos
Operating system: Windows 10
IDE: VS Code

@smitpatel smitpatel mentioned this issue Apr 15, 2019
82 tasks
@ajcvickers
Copy link
Member

This is in the master list for Cosmos in issue #12086. Keeping this open to track the specific work, now referenced from the master list.

@smitpatel
Copy link
Member

I am adding infrastructure support for this in query pipeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants