title: Making Firebird work with Entity Framework Code First and Migrations
body: <p>I am getting this error, when typing enable-migrations in packagemanager.</p>
  
  <blockquote>
    <p>No Entity Framework provider found for the ADO.NET provider with
    invariant name 'FirebirdSql.Data.FirebirdClient'. Make sure the
    provider is registered in the 'entityFramework' section of the
    application config file. 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>This is what i done so far:</p>
  
  <ul>
  <li>Downloaded the 32 Bit embedded firebird from:
  <a href="http://www.firebirdsql.org/en/firebird-2-5-2-upd1/" rel="nofollow">http://www.firebirdsql.org/en/firebird-2-5-2-upd1/</a></li>
  <li>Extracted the dll's to my solutions: <a href="http://d.pr/i/Hsgv" rel="nofollow">http://d.pr/i/Hsgv</a></li>
  <li>Added reference to FirebirdSql.Data.FirebirdClient: <a href="http://d.pr/i/7SiO" rel="nofollow">http://d.pr/i/7SiO</a></li>
  </ul>
  
  <p>Made this DataContext class:</p>
  
  <pre><code>class DataContext : DbContext
  {
      public static FbConnection connection
      {
          get
          {
              FbConnectionStringBuilder b = new FbConnectionStringBuilder();
              b.ServerType = FbServerType.Embedded;
              b.UserID = "SYSDBA";
              b.Password = "masterkey";
              b.Dialect = 3;
              b.Database = "D:\\cafw.fdb";
              b.Charset = "WIN1251";
              b.ClientLibrary = "fbembed.dll";
  
              return  new FbConnection(b.ToString());
          }
      }
  
  
      public DataContext()
          : base(connection, true)
      {
  
      }
  }
  </code></pre>
  
  <p>Note that this is a console application, so i have no app.config file to add the provider, and the database doesn't actually exist, was hoping it created that for me :)</p>