Mapping Data Types and Functions
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.
Type Mapping for Database First
In a Database First model, the data provider uses a store-centric type mapping scheme, in which the Pervasive PSQL (store) type influences the EDM type used when the model is generated.
Mapping Pervasive PSQL Types to EDM Types shows Pervasive PSQL types are mapped to primitive types used in a Database First model. Some Pervasive PSQL data types can map to several different EDM types; the default values are shown in italics.
The columns are defined as follows:
 
Type Mapping for Model First
Mapping EDM Types to Pervasive PSQL Types shows the model-centric type mapping, where the EDM Simple Types influences the Pervasive PSQL (store) type used when the database is created. The columns are defined as follows:
 
1 The Pervasive PSQL Engine does not support Unicode data types. So, all the applications written for Pervasive PSQL Engine will not store any Unicode data to Pervasive PSQL Engine. With this assumption, the Pervasive PSQL ADO.NET Provider maps both the Unicode and non-Unicode string types to same NativeTypes of Pervasive PSQL. This allows the .NET String Types (which are Unicode by default) to get mapped to either CHAR or VARCHAR based on their FIXED_LENGTH facet; and will not require users to explicitly mark them as non-Unicode.
2 Set the Unicode value for LONGVARCHAR mapping to True/False.
Type Mapping for Code First
Mapping CLR Types to Pervasive PSQL Data Types in a Code First Model shows the model-centric type mapping, where the CLR type influences the Pervasive PSQL (store) type used when the database is created. Some CLR types can map to several different Pervasive PSQL types; the default values are shown in italics. ).
The columns are defined as follows:
 
1 The Pervasive PSQL Engine does not support Unicode data types. So, all the applications written for Pervasive PSQL Engine will not store any Unicode data to Pervasive PSQL Engine. With this assumption, the Pervasive PSQL ADO.NET Provider maps both the Unicode and non-Unicode string types to same NativeTypes of Pervasive PSQL. This allows the .NET String Types (which are Unicode by default) to get mapped to either CHAR or VARCHAR based on their FIXED_LENGTH facet; and will not require users to explicitly mark them as non-Unicode.