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

Query definition breaks when the query values are captured from "static readonly" strings, but works constants, general strings etc. #3208

Closed
vidhyasagarreddy opened this issue May 20, 2022 · 3 comments

Comments

@vidhyasagarreddy
Copy link

vidhyasagarreddy commented May 20, 2022

class UserTypeConstants
{
   public static string Admin = "Admin";
}

...Container.GetItemLinqQueryable<T>().Where(m => m.userType == **UserTypeConstants.Admin**);
@vidhyasagarreddy vidhyasagarreddy changed the title Query definition breaks when the query value are captured from "static readonly" strings, but works constants, general strings etc. Query definition breaks when the query values are captured from "static readonly" strings, but works constants, general strings etc. May 20, 2022
@ealsur
Copy link
Member

ealsur commented May 20, 2022

Can you share how it breaks? What is the exception?

@j82w
Copy link
Contributor

j82w commented May 20, 2022

It's likely related to this issue which has been fixed but not released yet: #3188

@j82w
Copy link
Contributor

j82w commented May 25, 2022

@j82w j82w closed this as completed May 25, 2022
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