title: Entity Framework Core DbContext set DbConnection
body: <p>In .NET Framework was DbContext in EntityFramework 6 was <a href="https://msdn.microsoft.com/en-us/library/system.data.entity.dbcontext.dbcontext(v=vs.113).aspx" rel="nofollow noreferrer">constructor</a> where I can set DbConnection.</p>
  
  <p>In EF .NET Core can I set DbContext DbConnection? I hit an exception  in UseTransaction of DbContext method:</p>
  
  <blockquote>
    <p>An exception of type 'System.InvalidOperationException' occurred in Microsoft.EntityFrameworkCore.Relational.dll but was not handled in user code: 'The specified transaction is not associated with the current connection. Only transactions associated with the current connection may be used.'</p>
  </blockquote>
  
  <p>Does any body know how set the DbConnection? Or I have get a wrong way?</p>