• ShareFile.Api.Models.ODataContext
  • ShareFile.Api.Models.ODataContext

    Represents the context of a Model class in relationship to a given ODATA Request.

    NameTypeDescription
    BaseUriUri ODATA Request URI. USed as root for __metadata and __deferred links
    PathString Relative Path of the associated object. Used to compose __deferred links (Base/Path(id)) and to determine Selection of attributes
    ExpandList of String ODATA $expand field (split by commas)
    SelectList of String ODATA select field (split by commas)

    ODATA requests may reference Navigation links and properties using relative paths to the requested object. For example: Item(1)?$expand=Parent&$select=*,Parent/Name (will return all attributes of items and the Name of the Parent navigation property). This class contains the relative namespace of a given model object when processing the ODATA request. It also contains the original request Select and Expand elements. During Serialization, the Serializer will use this Context to determine which attributes of the object must be written to the output. This object is not preserved in Serialization itself. Client Models should not instantiate this class.