I set up a database using EF 6. I configured a many-to-many relationship successfully with the code seen below:
public class Software
{
public string Id { get; set; }
public string Version { get; set; }
public string Name { get; set; }
// Navigation property for machineSoftware
public virtual ICollection<Machine> MachineSoftwares { get; set; }
}
public class Machine
{
public int MachineId { get; set; }
public string Model { get; set; }
public string Customer { get; set; }
public virtual ICollection<Software> MachineSoftwares { get; set; }
}
EF 6 created a third table MachineSoftwares
automatically. So far so good.
Now I want to rename that table, but I don't have a corresponding class for that table that I could rename via migration. So how can I rename the table MachineSoftwares
?