Replies: 1 comment 3 replies
-
@DavidM29 is https://github.com/xuzhg/WebApiSample/tree/main/v9.x/CalculatedPropertyTest the one what you are looking for? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am fetching data from SQL Server which is used by Microsoft Navision and then I am exposing that data with ASP .NET Core OData. My problem now is that, Navision has "FlowFields" that are columns calculated from other tables during runtime (They are not stored in DB), so I have to calculate those columns myself, right now I am doing it this way:
(
ManufacturerName
is "FlowField" and it is being calculated fromManufacturer
Table)This works, but it causes all navigation properties to be fetched always(
Manufacturer
,ItemTranslations
,ItemPictures
) and if$expand
is used in the OData Query, this navigation properties are fetched twice. If I omit the navigation properties in the Select, then the OData$expand
does not work anymore, is it possible to not select the Navigation properties in theSelect
and make the$expand
work?I can provide more details if needed.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions