If someone could help me with the mistakes in the photo the classes are these
public class RobotDog { public int Id {get; set; } public string Name {get; set; } public bool Armed {get; set; } public virtual RobotProduction RobotProduction {get; set; }
}
public class RobotFactory
{
public int ID { get; set; }
public string Name { get; set; }
public string Location { get; set; }
public virtual ICollection<RobotProduction> RobotProduction { get; set; }
}
public class RobotProduction
{
public int ID { get; set; }
public int RobotdogId { get; set; }
public int RobotFactoryId { get; set; }
public DateTime ProductionDate { get; set; }
public virtual RobotDog Robotdog { get; set; }
public virtual RobotFactory RobotFactory { get; set; }
}
public class RobotContext : DbContext
{
public RobotContext() : base("RobotContext")
{ }
public DbSet RobotDogs { get; set; }
public DbSet RobotFactorys { get; set; }
public DbSet RobotProductions {get;set; }
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
modelBuilder.Conventions.Remove();
}
}