EntityProperty Class

An entity property. Used to explicitly set EdmType when necessary.

Values which require explicit typing are GUID, INT64, and BINARY. Other EdmTypes may be explicitly create as EntityProperty objects but need not be. For example, the below with both create STRING typed properties on the entity:


   entity = TableEntity()
   entity.a = 'b'
   entity.x = EntityProperty('y', EdmType.STRING)
Inheritance
builtins.tuple
EntityProperty

Constructor

EntityProperty(value, edm_type)

Parameters

Name Description
value
Required
Any
edm_type
Required

Type of the value

_cls
Required

Methods

count

Return number of occurrences of value.

index

Return first index of value.

Raises ValueError if the value is not present.

count

Return number of occurrences of value.

count(value, /)

Positional-Only Parameters

Name Description
value
Required

index

Return first index of value.

Raises ValueError if the value is not present.

index(value, start=0, stop=9223372036854775807, /)

Positional-Only Parameters

Name Description
value
Required
start
Default value: 0
stop
Default value: 9223372036854775807

Attributes

edm_type

Alias for field number 1

edm_type: str | EdmType

value

Alias for field number 0

value: Any