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

try to call function inside select #779

Closed
mahdiyar021 opened this issue Feb 14, 2024 · 3 comments
Closed

try to call function inside select #779

mahdiyar021 opened this issue Feb 14, 2024 · 3 comments
Assignees
Labels

Comments

@mahdiyar021
Copy link

mahdiyar021 commented Feb 14, 2024

im trying to call function inside select for get row number this work totally fine on normal linq select like :

db.JsonWebTokens
               .Select(x=>new { Rank = Microsoft.EntityFrameworkCore.EF.Functions.RowNumber(EF.Functions.Over().OrderBy(x.Id)), x.Id }).ToArray();

but this not working on dynamic linq :

 var res = db.JsonWebTokens
     .Select("x=>new { Microsoft.EntityFrameworkCore.EF.Functions.RowNumber(EF.Functions.Over().OrderBy(x.Id))  as Rank, x.Id }")
     .ToDynamicArray();

row number from extend library Zomp.EFCore.WindowFunctions.

exception : Enum type 'Microsoft.EntityFrameworkCore.EF.Functions' not found

@StefH StefH changed the title try to call fucntion inside select try to call function inside select Feb 14, 2024
@StefH
Copy link
Collaborator

StefH commented Feb 15, 2024

Probably related to #772

@StefH StefH self-assigned this Feb 15, 2024
@StefH StefH added the bug label Feb 15, 2024
@StefH
Copy link
Collaborator

StefH commented Feb 29, 2024

PR merged, a new NuGet will be released in some time

@StefH StefH closed this as completed Feb 29, 2024
@mahdiyar021
Copy link
Author

tnx

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

No branches or pull requests

2 participants