EntityKey

open class EntityKey : ObjectBase

Encapsulates an OData entity key.

  • Undefined (and immutable) entity key.

    Declaration

    Swift

    public static let undefined: EntityKey
  • Default initializer.

    Declaration

    Swift

    override public init()
  • Declaration

    Swift

    open func copyMutable() -> EntityKey

    Return Value

    a copy of this key which doesn’t share mutable values with this key.

  • map

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

    Declaration

    Swift

    open var map: DataValueMap { get set }
  • 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.