title: How to Pass CreateDbContext Args Parameters?
body: <p>I have a multiple DBContexts and DesignTimeDbContextFactory implementation like below.</p>
  <pre><code>public class MasterDbContextFactory : IDesignTimeDbContextFactory&lt;MasterDbContext&gt;
  {
      public MasterDbContext CreateDbContext(string[] args)
      {
          StringBuilder sb = new StringBuilder();
          foreach (var arg in args)
              sb.AppendLine(arg);
          System.IO.File.WriteAllText(&quot;D:\\debug.txt&quot;, sb.ToString());
   
          string server = args[1];
          string databaseName = args[2];
   
          string connectionString = string.Format(Constant.Connection, server, databaseName);
          var optionsBuilder = new DbContextOptionsBuilder&lt;MasterDbContext&gt;();
          optionsBuilder.UseSqlServer(&quot;connection string&quot;);
          return new MasterDbContext(optionsBuilder.Options);
      }
  }
  </code></pre>
  <p>As mentioned <a href="https://github.com/dotnet/efcore/issues/8332" rel="nofollow noreferrer">here</a>, I apply like this.</p>
  <pre><code>Update-Database -Context MasterDbContext -AppArgs 'LAPTOP-E4UBP70J' 'MASTER_USER'
  </code></pre>
  <p>But I don't see all args parameters.</p>