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

Allow using property-paths with respect to declaring type from model. #2734

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

Commits on Dec 2, 2022

  1. Allow using property-paths with respect to declaring type from model.

    Solves property path expressions like Stamp/CreatedByUser/Name, where CreatedByUser is interface (e.g. IMyInterface) which do not directly have a Name property, but the Name is in some base interface up in the hierarchy.
    
    Otherwise it internally throws System.ArgumentException: 'Instance property 'Name' is not defined for type 'IMyInterface'.
    
    It is possible to overcome the issue using a cast expression, but this forces to use hardcoded casts on client calling odata endpoints and have deeper knowledge about model behind it.
    mirecg committed Dec 2, 2022
    Configuration menu
    Copy the full SHA
    0a5f114 View commit details
    Browse the repository at this point in the history