-
Notifications
You must be signed in to change notification settings - Fork 16
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
$expand clause is not generated correctly #27
Comments
Hi @BineG , |
Hi. It is a one-to-many relationship (I also updated the original post). I'm using version 10.0.0.43 if it makes any difference. The correct query is but DRB generated it as |
can you add a couple of screenshots on how the relationships are setup inside the "Configure" tab of DRB? |
For one-to-many (and also many-to-many) the schema name is used, the relevant code for the expand is at this line: To be honest I don't know when I have the time to check and try to fix this behavior, I will try to replicate the table names you have and also create the same relationship as you have. |
I was trying to generate a query with $expand clause to a related entity with a one-to-many relationship and DRB generated the query with the wrong property name.
The reason is probably that the table was renamed and DRB should take the ReferencedEntityNavigationPropertyName instead of relationship schema name.
This is what I see in the make portal and what DRB takes to build the $expand clause
This is what it is shown in Metadata browser
If I replace the schema name in the query with the ReferencedEntityNavigationPropertyName the query works as expected, otherwise it just throws the "Could not find a property named ..." error.
The text was updated successfully, but these errors were encountered: