title: Entity Framework DbContext constructor with connection string
body: <p>Can someone help me understand the following two approaches to pass a connection string to the <code>DbContext</code>?</p>
  
  <p>Approach #1:</p>
  
  <pre><code>public EWebDBContextEMS() : base("mainConnectionString")
  {
  }
  </code></pre>
  
  <p>and approach #2:</p>
  
  <pre><code>public EWebDBContextEMS() : base("name=mainConnectionString")
  {
  }
  </code></pre>
  
  <p><a href="http://msdn.microsoft.com/en-au/data/jj592674.aspx" rel="noreferrer">This article states</a> that <code>name=...</code> will get created by designer, but I tested with pure <code>DbContext</code> code, it works as well. </p>
  
  <p>Is this an intented behaviour of the <code>DbContext</code> constructor? And in the <a href="http://msdn.microsoft.com/en-us/library/gg679467%28v=vs.113%29.aspx" rel="noreferrer">documentation</a>, it does not mention that <code>name=</code> is acceptable for connection string. </p>
  
  <p>Many thanks</p>