-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Should DynamicLinq be used? #54
Comments
Handlebars.Net.Helpers.DynamicLinq can be used, I just did not have time yet to create/update the wiki
|
There is already a Enumerable helper for that : https://github.com/Handlebars-Net/Handlebars.Net.Helpers/wiki/Enumerable But I also added more functionality to DynamicLinq. (#71) and ()#70. I'll create a new NuGet including this logic. And I did update the wiki a bit: |
@StefH cool! I will give it a try. Enumerable didn't work with complex objects. So the thinking was it would need to take in a property name that it would check if that value exists in that member. |
@natelaff |
Is the DynamicLinq helper production ready? It's not mentioned in readme and in code it seems to hint that it's only for backcompat.
I was going to craft a helper similar to Select where it could check the value of an item in array. For instance, I need to iterate through a lookup array, and check a collection to see if it has a matching ID there. I thought maybe I could do this with the linq helper using Any() or something, but thought I'd check your thoughts!
An ifExists or ifIn helper might be a nice add. I am going to take a stab at it... not quite sure how to make that dynamic the way I need but... we'll figure it out maybe
The text was updated successfully, but these errors were encountered: