title: How to integrate PostgreSql with EntityFramework 6.0.2?
body: <p>I am receiving following error</p>
  
  <blockquote>
    <p>The 'Instance' member of the Entity Framework provider type
    'Npgsql.NpgsqlServices, Npgsql, Version=2.0.14.2, Culture=neutral,
    PublicKeyToken=5d8b90d52f46fda7' did not return an object that
    inherits from 'System.Data.Entity.Core.Common.DbProviderServices'.
    Entity Framework providers must inherit from this class and the
    'Instance' member must return the singleton instance of the provider.
    This may be because the provider does not support Entity Framework 6
    or later; see <a href="http://go.microsoft.com/fwlink/?LinkId=260882" rel="nofollow">http://go.microsoft.com/fwlink/?LinkId=260882</a> for more
    information.</p>
  </blockquote>
  
  <p>Can any one help me</p>
  
  <p>here is my App.Config File</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;
      &lt;!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --&gt;
      &lt;section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /&gt;
    &lt;/configSections&gt;
    &lt;connectionStrings&gt;
      &lt;add name="CacsLocal" connectionString="Server=localhost;Database=Kappa;User Id=postgres; Password=xyz;" providerName="Npgsql" /&gt;
      &lt;add name="   CacsCentral" connectionString="Server=localhost;Database=KPT1;User Id=postgres; Password=insane1234;" providerName="Npgsql" /&gt;
    &lt;/connectionStrings&gt;
    &lt;entityFramework&gt;
      &lt;defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" /&gt;
      &lt;providers&gt;     
        &lt;provider invariantName="Npgsql" type="Npgsql.NpgsqlServices, Npgsql" /&gt;
        &lt;provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"&gt;&lt;/provider&gt;
      &lt;/providers&gt;
    &lt;/entityFramework&gt;
    &lt;system.data&gt;
      &lt;DbProviderFactories&gt;
        &lt;add name="Npgsql Data Provider" invariant="Npgsql" description="Data Provider for PostgreSQL" type="Npgsql.NpgsqlFactory, Npgsql" /&gt;
      &lt;/DbProviderFactories&gt;
    &lt;/system.data&gt;
    &lt;startup&gt;
      &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /&gt;
    &lt;/startup&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I have Npgsql2 version 2.0.14.2
  Entity Framework 6.0.2</p>
  
  <p>All the packages are installed through Package Manager by following command</p>
  
  <pre><code>Install-Package Npgsql -Pre
  Install-Package EntityFramework -Pre
  </code></pre>
  
  <p>Thanks</p>