Table 8-7 shows Oracle types are mapped to primitive types used in a Database First model. Some Oracle data types can map to several different EDM types; the default values are shown in italics. If you prefer another type mapping, you can specify it using StoreEdmMappings (see “storeEdmMappings”).
Table 8-7. Mapping Oracle Types to EDM Types
Only supported on Oracle 10g and higher.
Table 8-8 shows the model-centric type mapping, where the EDM Simple Types influences the Oracle (store) type used when the database is created. The columns are defined as follows:
Table 8-8. Mapping EDM Types to Oracle Types Max Length = (1 <= n <= 2000) RAW(n) Max Length = Max | (n > 2000) Max Length = (1 <= n <= 2000) NCHAR(n) Max Length = (1 <= n <= 4000) CHAR(n) Max Length = max | (n > 2000) Max Length = max | (n > 4000)
Table 8-9 shows the model-centric type mapping, where the CLR type influences the Oracle (store) type used when the database is created. Some CLR types can map to several different Oracle types; the default values are shown in italics. If you prefer another type mapping, you can specify it using StoreEdmMappings (see “storeEdmMappings”).
LONG1
Table 8-10 describes the mapping of EDM aggregate canonical functions to Oracle functions.
Table 8-10. Mapping Aggregate Canonical Functions Avg(expression) avg(expression) BigCount(expression) count(expression) Count(expression) count(expression) Max(expression) max(expression) Min(expression) min(expression) StDev(expression) stdev_samp(expression) Sum(expression) sum(expression)Table 8-11 describes the mapping of EDM math canonical functions to Oracle functions.
Table 8-11. Mapping Math Canonical Functions Abs(value) abs(value) Ceiling(value) ceil(value) Floor(value) floor(value) Round(value) round(value, 0)Table 8-12 describes the mapping of EDM date and time canonical functions to Oracle functions.
Table 8-12. Mapping Date and Time Canonical Functions Year(expression) extract(YEAR from expression) Month(expression) extract(MONTH from expression) Day(expression) extract(DAY from expression) Hour(expression) extract(HOUR from expression) Minute(expression) extract(MINUTE from expression) Second(expression) extract(SECOND from expression) Millisecond(expression) GetTotalOffsetMinutes(DateTime Offset) tz_offset(SESSIONTIMEZONE) + current_date Table 8-13 describes the mapping of EDM bitwise canonical functions to Oracle functions.
Table 8-13. Mapping Bitwise Canonical Functions BitWiseNot (value) Table 8-14 describes the mapping of EDM string canonical functions to Oracle functions.
Table 8-14. Mapping String Canonical Functions Length(string) length(string) LTrim(string) ltrim(string) Trim(string) trim (BOTH FROM string) Reverse(string) RTrim(string) rtrim(string) Substring(string, start, length) ToLower(string) lower(string) ToUpper(string) upper(string)