Table of Contents Previous Next



Step 1: Add the EntityFramework5.EnterpriseDB.EDBClient.dll assembly in the global assembly cache (GAC) with the gacutil utility using the Visual Studio Developers Command line.
Step 2: Add the <DbProviderFactories> entries for the ADO.NET driver of EDB Postgres in the machine.config file. The following are the entries:
Note: For the attribute-value pairs, the double-quoted strings should not contain excess white space characters, but be configured on a single line. The examples shown in this section may be split on multiple lines for clarity, but should actually be configured within a single line such as the following:
For 64-bit Windows, the machine.config file is in the following location:
For 32-bit Windows, the machine.config file is in the following location:
Step 3: Place the DDL generation template SSDLToPgSQL.tt in the Visual Studio EntityFramework Tools\DBGen\ folder as in the following example:
Note: Select this template SSDLToPgSQL.tt in your EDMX file properties.
Step 4: Add files EnterpriseDB.EDBClient.dll and EntityFramework6.EnterpriseDB.EDBClient.dll in project references. See Section 4.2.1 for information about referencing library files.
Step 5: In the project’s app.config file add the following entry for provider services under the EntityFramework/providers tag.


Table of Contents Previous Next