I'm doing code first approach for the first time, and I created two classes (tables), and a context class.
Context
namespace Idle.Models.Database
{
public class DatabaseContext : DbContext
{
public DatabaseContext() : base("name=Database")
{
}
public DbSet<Company> Companies{ get; set; }
public DbSet<Car> Cars{ get; set; }
}
}
And then I built the project.
But the tables weren't created in my database.
How do I then create my two tables?