DataMethodCall
open class DataMethodCall : DataValue, @unchecked Sendable
Encapsulates the application of an OData method (function or action) to a list of parameters.
This is used to represent calls to actions and functions defined within an entity model, as opposed to QueryFunction which is used to represent calls to builtin functions.
-
Default initializer.
Declaration
Swift
override public init() -
Declaration
Swift
open class func apply(method: DataMethod, parameters: ParameterList) -> DataMethodCallParameters
methodValue for
method.parametersValue for
parameters.Return Value
A new function application.
-
Declaration
Swift
override open func copyMutable() -> DataValueReturn Value
A clone of this value if it (together with all value subcomponents) is possibly mutable, or return
selfvalue if it (together with all value subcomponents) is definitely immutable. The resulting value might share mutable metadata with this query. -
Data type of the wrapped value.
Declaration
Swift
override open var dataType: DataType { get } -
Metadata for the function or action.
Declaration
Swift
public final var method: DataMethod { get set } -
Actual parameters for ths method application.
Declaration
Swift
public final var parameters: ParameterList { get set } -
Convert this data value to a string. If the
dataTypeis defined by XML Schema Part 2: Datatypes, then the corresponding lexical format is used. JSON format is used for structured values (arrays and objects).Declaration
Swift
override open func toString() -> StringReturn Value
Lexical representation of this data value.