The ODP.NET manifest file describes the primitive types, such as VARCHAR2
and Number
, and the Entity Data Model (EDM) types, such as string
and Int32
, that they map to. It also includes the facets for each EDM type.
ODP.NET does not support Time literals and canonical functions related to the Time type.
Oracle considers both NULL
and empty strings to be NULL
strings and are considered to be equal. Operations, such as Equals(), Length(),
and Trim()
on such strings will result in a NULL
string.
Table 4-1 maps the Oracle data types to their corresponding EDM types. The table also includes details about provider type attributes and the EDM type facets associated with each Oracle data type.
Table 4-1 Mapping of Oracle Data Types and EDM Types
Oracle Data Types | EDM Types(Primitive-TypeKind) | Provider Type Attributes: Name and Value | EDM Type Facets |
---|---|---|---|
|
|
|
|
|
|
|
Not Applicable |
|
|
|
Not Applicable |
|
|
|
Not Applicable |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Not Applicable |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Not Applicable |
Not Applicable and Not Supported |
|
|
|
|
Not Applicable |
|
|
|
Not Applicable |
|
|
|
Not Applicable |
(all other cases) |
|
|
|
|
|
|
|
|
Not Applicable |
Not Applicable and Not Supported |
|
|
|
|
|
|
|
|
Not Applicable |
|
Not Applicable |
Not Applicable and Not Supported |
|
|
|
|
|
|
|
|
Not Applicable |
|
|
|
|
|
|
|
|
|
|
|
|
(size) |
|
|
|
|
|
|
|
|
Not Applicable |
Not Applicable and Not Supported |
|
|
|
|
The following sections enumerate the EDM type facets for the preceding Oracle data types:
Facet name | Attribute name | Value |
---|---|---|
MaxLength |
DefaultValue
|
2147483648
|
FixedLength |
DefaultValue
|
False
|
Facet name | Attribute name | Value |
---|---|---|
MaxLength |
DefaultValue
|
2147483648
|
FixedLength |
DefaultValue
|
False
|
Facet name | Attribute name | Value |
---|---|---|
MaxLength |
Minimum
|
1
|
Unicode |
DefaultValue
|
False
|
FixedLength |
DefaultValue
|
True
|
Facet name | Attribute name | Value |
---|---|---|
MaxLength |
DefaultValue
|
2147483647
|
Unicode |
DefaultValue
|
False
|
FixedLength |
DefaultValue
|
False
|
Facet name | Attribute name | Value |
---|---|---|
Precision |
Constant
|
True
|
Facet name | Attribute name | Value |
---|---|---|
Precision |
Minimum
|
0
|
Scale |
Minimum
|
0
|
EDM Type Facets for Interval Day To Second
Facet name | Attribute name | Value |
---|---|---|
Precision |
Minimum
|
1
|
Scale |
Minimum
|
0
|
Note:
EDM types do not supportTimeSpan
.
Use Decimal
to represent the total number of seconds. An application can obtain a TimeSpan
by using the TimeSpan.FromSeconds
static method.
EDM Type Facets for Interval Year To Month
Facet name | Attribute name | Value |
---|---|---|
Precision |
Minimum
|
1
|
Scale |
Minimum
|
0
|
Facet name | Attribute name | Value |
---|---|---|
MaxLength |
DefaultValue
|
2147483647
|
Unicode |
DefaultValue
|
False
|
FixedLength |
DefaultValue
|
False
|
Facet name | Attribute name | Value |
---|---|---|
MaxLength |
DefaultValue
|
2147483647
|
FixedLength |
DefaultValue
|
False
|
Facet name | Attribute name | Value |
---|---|---|
MaxLength |
Minimum
|
1
|
Unicode |
DefaultValue
|
True
|
FixedLength |
DefaultValue
|
True
|
Note:
ForNChar,
the actual data is subject to the maximum byte limit of 2000.
The value of 1000 for Maximum
and DefaultValue
allows the EDM wizard to display columns of NCHAR(1000)
, where 1000 is the maximum number of characters allowed in DDL.
Facet name | Attribute name | Value |
---|---|---|
MaxLength |
DefaultValue
|
2147483647
|
Unicode |
DefaultValue
|
True
|
FixedLength |
DefaultValue
|
False
|
Facet name | Attribute name | Value |
---|---|---|
Precision |
Minimum
|
1
|
Scale |
Minimum
|
0
|
Facet name | Attribute name | Value |
---|---|---|
MaxLength |
Minimum
|
1
|
Unicode |
DefaultValue
|
True
|
FixedLength |
DefaultValue
|
False
|
Note:
ForNVARCHAR2,
the actual data is subject to the maximum byte limit of 4000.
The value of 2000 for Maximum
and DefaultValue
allows the EDM wizard to display columns of NVARCHAR2(2000)
, where 2000 is the maximum number of characters allowed in DDL.
Facet name | Attribute name | Value |
---|---|---|
MaxLength |
Minimum
|
1
|
FixedLength |
DefaultValue
|
False
|
Facet name | Attribute name | Value |
---|---|---|
MaxLength |
DefaultValue
|
18
|
Unicode |
DefaultValue
|
False
|
FixedLength |
DefaultValue
|
True
|
Facet name | Attribute name | Value |
---|---|---|
Precision |
Minimum
|
0
|
EDM Type Facets for Timestamp with Local Time Zone
Facet name | Attribute name | Value |
---|---|---|
Precision |
Minimum
|
0
|
EDM Type Facets for Timestamp with Time Zone
Facet name | Attribute name | Value |
---|---|---|
Precision |
Minimum
|
0
|
Facet name | Attribute name | Value |
---|---|---|
MaxLength |
DefaultValue
|
4000
|
FixedLength |
DefaultValue
|
True
|
Facet name | Attribute name | Value |
---|---|---|
MaxLength |
Minimum
|
1
|
Unicode |
DefaultValue
Constant |
False
|
FixedLength |
DefaultValue
|
False
|
Facet name | Attribute name | Value |
---|---|---|
MaxLength |
DefaultValue
|
2147483647
|
Unicode |
DefaultValue
|
True
|
FixedLength |
DefaultValue
|
False
|