Breadcrumbs

OData Import Rules

Bridge 7 The OData Importer imports OData Version 4.0 definitions encoded in CSDL (.edmx) and creates UML model elements corresponding to the definitions.
The CSDL file of your OData service can be retrieved from this URL: http://<servicehost>/<servicepath>/$metadata.

Limitations

  • The OData Importer supports OData files of version 4.0 for entity and service description.

  • Concerning older OData versions, we mostly support 3.0 for entity import but cannot import service descriptions.

Service Import Limitations

The OData Importer has the following limitations concerning import of service descriptions:

  • You cannot use $count to get the number of records returned by a request. This would return an integer in the response body and that is not supported.

  • You cannot use Open Type features to support dynamic properties.

  • You cannot request an individual property of a complex structure using <entity name>('<entity ID')/<individual property name>.

  • You cannot group multiple requests using the batch feature of OData.

OData Primitive Types

OData Type

Description

Supported
by
Importer

E2E Type

Edm.Binary

Binary data

(tick)

Blob

Edm.Boolean

Binary-valued logic

(tick)

Boolean

Edm.Byte

Unsigned 8-bit integer

(tick)

Integer

Edm.Date

Date without a time-zone offset

(tick)

DateTime

Edm.DateTimeOffset

Date and time with a time-zone offset, no leap seconds

(tick)

DateTime

Edm.Decimal

Numeric values with fixed precision and scale

(tick)

Float

Edm.Double

IEEE 754 binary64 floating-point number (15-17 decimal digits)

(tick)

Float

Edm.Duration

Signed duration in days, hours, minutes, and (sub)seconds

(cross)


Edm.Guid

16-byte (128-bit) unique identifier

(tick)

String

Edm.Int16

Signed 16-bit integer

(tick)

Integer

Edm.Int32

Signed 32-bit integer

(tick)

Integer

Edm.Int64

Signed 64-bit integer

(tick)

Integer

Edm.SByte

Signed 8-bit integer

(cross)


Edm.Single

IEEE 754 binary32 floating-point number (6-9 decimal digits)

(tick)

Float

Edm.Stream

Binary data stream

(cross)


Edm.String

Sequence of UTF-8 characters

(tick)

String

Edm.TimeOfDay

Clock time 00:00-23:59:59.999999999999

(cross)


Edm.Geography

Abstract base type for all Geography types

(cross)


Edm.GeographyPoint

A point in a round-earth coordinate system

(cross)


Edm.GeographyLineString

Line string in a round-earth coordinate system

(cross)


Edm.GeographyPolygon

Polygon in a round-earth coordinate system

(cross)


Edm.GeographyMultiPoint

Collection of points in a round-earth coordinate system

(cross)


Edm.GeographyMultiLineString

Collection of line strings in a round-earth coordinate system

(cross)


Edm.GeographyMultiPolygon

Collection of polygons in a round-earth coordinate system

(cross)


Edm.GeographyCollection

Collection of arbitrary Geography values

(cross)


Edm.Geometry

Abstract base type for all Geometry types

(cross)


Edm.GeometryPoint

Point in a flat-earth coordinate system

(cross)


Edm.GeometryLineString

Line string in a flat-earth coordinate system

(cross)


Edm.GeometryPolygon

Polygon in a flat-earth coordinate system

(cross)


Edm.GeometryMultiPoint

Collection of points in a flat-earth coordinate system

(cross)


Edm.GeometryMultiLineString

Collection of line strings in a flat-earth coordinate system

(cross)


Edm.GeometryMultiPolygon

Collection of polygons in a flat-earth coordinate system

(cross)


Edm.GeometryCollection

Collection of arbitrary Geometry values

(cross)


On importing an OData entities description, the importer will generate a package structure from the OData definitions. The entities are generated to a package Entities, the types to a package Types. For each entity and type, a corresponding collection type is created.

Related Pages: