title: Can't create database EF Core C#
body: <p>Im trying to create my database after finnishing up my classes, getting error message
  &quot;Unable to create an object of type 'HamsterDbContext'. For the different patterns supported at design time&quot;</p>
  <pre><code>public class HamsterDbContext : DbContext
  {
      public HamsterDbContext(DbContextOptions&lt;HamsterDbContext&gt; options) : base(options) { }
      public virtual DbSet&lt;Hamster&gt; Hamsters { get; set; }
      public virtual DbSet&lt;Cage&gt; Cages { get; set; }
      public virtual DbSet&lt;ExerciseArea&gt; ExerciseArea { get; set; }
  }
     
  internal class DatabaseHelper
  {
      public static HamsterDbContext NewContext()
      {
          const string host = &quot;(LocalDB)\\MSSQLLocalDB&quot;;
          const string database = &quot;HamsterDaycare&quot;;
          var connectionString = $&quot;Data Source={host};Initial Catalog={database};Integrated Security=True;&quot;;
  
          var dbContextBuilder = new DbContextOptionsBuilder&lt;HamsterDbContext&gt;();
  
          dbContextBuilder.UseSqlServer(connectionString);
  
          return new HamsterDbContext(dbContextBuilder.Options);
      }
  }
  </code></pre>
  <p>Looks like this, typing add-migration CreateDatabase, what am i doing wrong here?</p>