title: Entity Framework with Microsoft Access
body: <p>I use .accdb file. I created class </p>
  
  <pre><code>using System.Data.Entity;
  
      class MSADbContext:DbContext
      {
          public DbSet&lt;Product&gt; Products { get; set; }
      }
  </code></pre>
  
  <p>and add connectionString</p>
  
  <pre><code>&lt;add name="MSADbContext" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\SportsStore.accdb" providerName="System.Data.OleDb"/&gt;
  </code></pre>
  
  <p>After first query to DB I get the ProviderIncompatibleException: "calling "get_ProviderFactory" in repository typeOf "System.Data.OleDb.OleDbConnection" returns null" </p>