dbelmont / ExpressionBuilder

A library that provides a simple way to create lambda expressions to filter lists and database queries.
Apache License 2.0
372 stars 105 forks source link

Conventions(. and []) are not working on Type with depth more than one. #29

Open sarfrazaakbar opened 6 years ago

sarfrazaakbar commented 6 years ago

For Example Person class has reference to Contact and Contact has Reference to ContactInfo and ContactInfo has reference to Address. I want to add filter on Address i.e Person.Contact.ContactInfo.Address. It is throwing exception.

Program.zip

axanth commented 6 years ago

I Got the same issue. any news on this?

dbelmont commented 6 years ago

Hi @sarfrazaakbar, @axanth, Sorry for the late reply. A similar issue was reported (#26). The thing is that the project currently doesn't really support going down more than one level into nested properties. I'll have a look at this and try to keep you guys posted. Cheers.

dbelmont commented 5 years ago

Hi @sarfrazaakbar,

I created a pre-release package at NuGet.org with (I believe) the fix for this issue. Would you mind checking that out and leaving a comment here to let me know if it's working correctly now?

Many thanks, David

axanth commented 5 years ago

Hi David,

Thank you for your answer! I am using your library already so I managed to fix the issue by myself!!

I will check the changes you made and compare with mine to pick the best solution!!

Best regards!

Alexandros Xanthoudakis

Software Engineer

Mob. 306944352976

www.oda.gr

From: David Belmont notifications@github.com Sent: Sunday, January 20, 2019 6:04 PM To: dbelmont/ExpressionBuilder ExpressionBuilder@noreply.github.com Cc: axanth alex@oda.gr; Mention mention@noreply.github.com Subject: Re: [dbelmont/ExpressionBuilder] Conventions(. and []) are not working on Type with depth more than one. (#29)

Hi @sarfrazaakbar https://github.com/sarfrazaakbar ,

I created a pre-release package at NuGet.org https://www.nuget.org/packages/LambdaExpressionBuilder/2.0.2-beta with (I believe) the fix for this issue. Would you mind checking that out and leaving a comment here to let me know if it's working correctly now?

Many thanks, David

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dbelmont/ExpressionBuilder/issues/29#issuecomment-455878566 , or mute the thread https://github.com/notifications/unsubscribe-auth/AGNRVRc7jgJw_XrXGCfPvB-DUbAWbwH4ks5vFJNUgaJpZM4VALqO . https://github.com/notifications/beacon/AGNRVXZPXjrjB3-UYxEQQMFJ9CGPYHidks5vFJNUgaJpZM4VALqO.gif