Using the ADO.NET Entity Framework
Developers can use the ADO.NET Entity Framework to create data access applications by programming against a conceptual application model instead of programming directly against a relational storage schema.
Mapping Pervasive Data Types to Simple Types
In Table 15, the columns are defined as follows:
 
Table 16 shows the mapping of EDM Simple Types to Pervasive data types. The columns are defined as follows:
 
Mapping EDM Canonical Functions to Pervasive Functions
The ADO.NET Entity Framework translates the Entity Data Model (EDM) canonical functions to the corresponding data source functionality for the ADO.NET Entity Framework data provider for Pervasive PSQL. The function invocations are expressed in a common form across data sources.
Because these canonical functions are independent of data sources, argument and return types of canonical functions are defined in terms of types in the EDM. When an Entity SQL query uses canonical functions, the appropriate function is called at the data source.
Both null-input behavior and error conditions are explicitly specified for all canonical functions. However, the ADO.NET Entity Framework does not enforce this behavior. Further details are available at: http://msdn.microsoft.com/en-us/library/bb738626.aspx
Aggregate Canonical Functions
Table 17 describes the mapping of EDM aggregate canonical functions to Pervasive functions.
 
Avg(expression)
avg(expression)
BigCount(expression)
count(expression)
Count(expression)
count(expression)
Max(expression)
max(expression)
Min(expression)
min(expression)
StDev(expression)
stdev(expression)
StDevP(expression)1
stdevp(expression)
Sum(expression)
sum(expression)
Var(expression)1
var(expression)
VarP(expression)1
varp(expression)
1 Requires Pervasive PSQL v11.30 Update 4 (May 2013)
Math Canonical Functions
Table 18 describes the mapping of EDM math canonical functions to Pervasive PSQL functions used to process columns that contain only decimal and integer values.
For more information, refer to the Numeric Functions.
 
 
Abs(value)
abs(value)
Ceiling(value)
ceiling(value)
Floor(value)
floor(value)
Round(value)
round(numeric_expression1, integer_expression2)
Date and Time Canonical Functions
Table 19 describes the mapping of EDM date and time canonical functions to Pervasive functions that generate, process, and manipulate data that consists of data types such as DATE and TIME.
 
1 Requires Pervasive PSQL v11.30 Update 4 (May 2013)
Bitwise Canonical Functions
Table 20 describes the mapping of EDM bitwise canonical functions to Pervasive PSQL functions.
 
BitWiseAnd (value1, value2)
bit_and (value1, value2)
BitWiseOr (value1, value2)
BitWiseXor (value1, value2)
String Canonical Functions
Table 21 describes the mapping of EDM string canonical functions to Pervasive PSQL functions.
 
Concat(string1, string2)
concat(string1, string2)
Contains(string, target)
contains(string, target)
EndsWith(string, target)
endswith(string, target)
IndexOf(target, string2)
instr(target, string2)
Left(string1, length)
left(string1, length)
Length(string)
length(string)
LTrim(string)
ltrim(string)
Trim(string)
Replace(string1, string2, string3)
replace(string1, string2, string3)
Reverse(string)
reverse(string)
RTrim(string)
rtrim(string)
StartsWith(string, target)
startswith(string, target)
Substring(string, start, length)
ToLower(string)
lower(string)
ToUpper(string)
upper(string)
Other Canonical Functions
Table 22 describes the mapping of other canonical functions to Pervasive PSQL functions.