title: how to set asp.net identity connection string from dll file not from webconfig?
body: <p>I<code>m working for a company that they use dll for connection string and i</code>m tryng to change asp.net identity default connection string in ApplicationDbContext class ,
  my connection class that use dll is like this :</p>
  
  <pre><code>public class HRConnection
  {       
      public string HR_con
      {
          get
          {
              return "server=192.168.1.21; database=HR; user=teamuser ; password=t123@456  ; connection timeout=30";                
          }
      }
  }
  </code></pre>
  
  <p>i<code>ve tried to pass string like this , but it didn</code>t work </p>
  
  <pre><code>public class ApplicationDbContext : IdentityDbContext&lt;ApplicationUser&gt;
  {
      string  HrConn = new HRConnection().HR_con;
      public ApplicationDbContext()
          : base(HrConn, throwIfV1Schema: false)
      {
      }
  }
  </code></pre>
  
  <p>how do i set the connection in code and not from webconfig file ?</p>