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 Filters on internal properties #282

Open
nfaugout-lucca opened this issue Nov 20, 2018 · 1 comment
Open

Support Filters on internal properties #282

nfaugout-lucca opened this issue Nov 20, 2018 · 1 comment

Comments

@nfaugout-lucca
Copy link
Contributor

var property = subType.GetProperty(name, BindingFlags.FlattenHierarchy | BindingFlags.IgnoreCase | BindingFlags.Public | BindingFlags.Instance);

This line show that internal properties are not taken into account when getting properties.

In Lucca.Auth, we have a public mail property of type MailAddress, which is backed behing the scene by a mailAsString internal property that is mapped to EF and on which I would like to transfer any filter made on mail.

The only pb is that maiAsString is not found by the ExpressionParser because it is internal.

@nfaugout-lucca
Copy link
Contributor Author

Another way to resolve this issue, using EF converters : https://docs.microsoft.com/fr-fr/ef/core/modeling/value-conversions.

I will test that in Lucca.Auth and Close the Issue if successful

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

No branches or pull requests

1 participant