1

This SO question describes how to call DatePart function using EntityFramework:

I wonder if I can provide a similar binding for PERCENTILE_CONT.

Or maybe the only way to use PERCENTILE_CONT via EntityFramework is to have a stored procedure and call it from my EF code?

asked Dec 16, 2021 at 9:43
3
  • 1
    You could probably build it off the RowNumberExpression source code, see github.com/dotnet/efcore/blob/main/src/EFCore.Relational/Query/… Commented Dec 16, 2021 at 11:02
  • Thanks. I tried creating something like this, but I've got hard time trying to call it. Do you have any resources on adding custom extensions into EntityFramework? I've tried googling myself, but most likely I use wrong phrase. Commented Dec 16, 2021 at 15:18
  • 1
    Don't be so optimistic, even you create RankExpression, you will need to replace SqlBuilder (whatever it is named in EF Core) Commented Dec 16, 2021 at 19:34

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.