EntityKey

open class EntityKey: ObjectBase

Encapsulates an OData entity key.

  • map

    A map containing the key/value pairs for key properties.

    Declaration

    Swift

    final public var map: DataValueMap = DataValueMap()
  • Default initializer.

    Declaration

    Swift

    override public init()
  • Declaration

    Swift

    override open func toString() -> String

    Return Value

    A string representation of this object.

  • Set the value of a key property.

    Declaration

    Swift

    open func with(name: String, value: DataValue?) -> EntityKey

    Parameters

    name

    Key property name.

    value

    Key property value.

    Return Value

    This key.

  • Set the value of a key property.

    Declaration

    Swift

    open func withProperty(_ property: Property, value: DataValue?) -> EntityKey

    Parameters

    property

    Key property.

    value

    Key property value.

    Return Value

    This key.