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

Add extendFuncMap to Predicate #202

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tschettler
Copy link
Contributor

Adding a function to extend the funcMap defined in FnExpr within the Predicate scope. This function is modeled after extendBinaryPredicateFn, This will allow adding functions that are available in OData 4, but that breeze does not have defined.

For example, after adding a date function to the funcMap:
var predicate = new breeze.Predicate("date(startDate)", "eq", dateValue);

The workaround for this would be to use a pass-thru predicate:
var predicate = new breeze.Predicate("date(startDate) eq " + dateValue);

@tschettler tschettler changed the title Added extendFuncMap to Predicate. Add extendFuncMap to Predicate. Aug 31, 2017
@tschettler tschettler changed the title Add extendFuncMap to Predicate. Add extendFuncMap to Predicate Aug 31, 2017
@tschettler tschettler force-pushed the extend-funcMap branch 2 times, most recently from 2859706 to bc2c7b6 Compare March 9, 2018 20:16
@steveschmitt
Copy link
Member

Thanks for this. Can you add it to the breeze-client repo?

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

Successfully merging this pull request may close these issues.

2 participants