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

Support for casting #107

Open
vabic opened this issue Dec 9, 2022 · 0 comments
Open

Support for casting #107

vabic opened this issue Dec 9, 2022 · 0 comments
Labels
analysis Problem analysis

Comments

@vabic
Copy link

vabic commented Dec 9, 2022

I want to do a search for

public class Item
{
    public string Name { get; set; } = String.Empty;
    public string Description { get; set; } = String.Empty;
    public int? Year { get; set; }
}

.filter(item, func)=> func.Contains(func.Concat(func.Cast(item.Year, "'Edm.String'")), searchBy)
cause error : cannot convert int to string;

should be equivalent to $filter=contains(concat(cast(Year, 'Edm.String')), {searchBy});

@ZEXSM ZEXSM added the analysis Problem analysis label Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analysis Problem analysis
Projects
None yet
Development

No branches or pull requests

2 participants