title: Moving ASP.NET Identity model to class library
body: <p>I am trying to move the Identity model to a class library using the methods in this link:</p>
  <blockquote>
  <p><a href="http://www.umbraworks.net/bl0g/rebuildall/2013/10/22/Moving_ASP_NET_Identity_model_into_another_assembly" rel="noreferrer">ASP.NET Identity in Services library</a></p>
  </blockquote>
  <p>Problem 1: It seems to keep using the Website project's connection string.  I overcame it by specifying the full connection string in the class library.  Can I make the IdentityDbContext use the class library's connection string?</p>
  <p>Problem 2: Due to the problem 1, if I remove the Entity Framework from the website project. It will give the following error that it is looking for EF's SqlClient in the Website project.</p>
  <blockquote>
  <p>An exception of type 'System.InvalidOperationException' occurred in EntityFramework.dll but was not handled in user code</p>
  <p>Additional information: No Entity Framework provider found for the ADO.NET provider with invariant name 'System.Data.SqlClient'. 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="noreferrer">http://go.microsoft.com/fwlink/?LinkId=260882</a> for more information.</p>
  </blockquote>
  <p>Other solutions are welcome as long as it omits all Data Access Layer references like EF in the Website project.</p>