TDV Adapter for SAP Business One

Build 21.0.8137

Views

Modeling Navigation Properties

By default, the adapter models Navigation Properties as separate views. The views are named in the format ParentTable_NavigationProperty. You can disable this behavior with NavigationPropertiesAsViews.

Querying Navigation Properties

For an example of working with a navigation property as a view, consider BusinessPartners. The BusinessPartners entity set has an Orders navigation property. The SAP Business One Adapter will display a view called BusinessPartners_Orders for this service. Retrieving data from BusinessPartners_Orders will display all of the Orders associated with a given BusinessPartner. The BusinessPartners_Orders view has a primary key made up of the primary key of the parent entity and the primary key of the related entity.

Support for navigation properties is currently limited in SAP Business One Service Layer. As of the time of this writing, it is only supported in ODataVersion 3.0. See NavigationPropertiesAsViews to toggle the behavior of this functionality.

Copyright (c) 2022 CData Software, Inc. - All rights reserved.
Build 21.0.8137