title: Entity Framework connection string not from config
body: <pre><code>public class Context : DbContext
  {
      public Context(string connString) : base(connString) 
      {
          Database.SetInitializer(new MyContextInitializer());
      }
  //...
  </code></pre>
  
  <p>Need to pass a connection string to the context constructor. How should the string look like, for example, for SQL Compact? Tried this, but no success:</p>
  
  <pre><code>Context db = new Context("Provider=System.Data.SqlServerCe.4.0;Data Source=D:\\Context.sdf");
  </code></pre>
  
  <p><strong>Edit:</strong></p>
  
  <p>If I try this string: <code>"Data Source=D:\\Context.sdf"</code></p>
  
  <blockquote>
    <p>System.Data.ProviderIncompatibleException was unhandled</p>
    
    <p>Message=An error occurred while getting provider information from the database.<br>
    This can be caused by Entity Framework using an incorrect connection string. 
    Check the inner exceptions for details and ensure that the connection string is correct.</p>
    
    <p>Source=EntityFramework</p>
  </blockquote>
  
  <p>And if I try to mention the provider like this: <code>"Data Source=D:\\Context.sdf;provider=System.Data.SqlServerCe.4.0"</code></p>
  
  <blockquote>
    <p>System.ArgumentException was unhandled</p>
    
    <p>Message=Keyword not supported: 'provider'.</p>
    
    <p>Source=System.Data</p>
  </blockquote>