When I try to Map 2 tables with many to many relationship, I only get option .WithOne() but not getting .WithMany() ?
Here are those 2 classes.
public class Proizvod
{
public int Id { get; set; }
public String Naziv { get; set; }
public ICollection<Racun> Racuni { get; set; }
public Proizvod()
{
this.Racuni = new List<Racun>();
}
}
public class Racun
{
public int Id { get; set; }
public List<int> Kolicina { get; set; }
public ICollection<Proizvod> Proizvodi { get; set; }
public Racun()
{
this.Proizvodi = new List<Proizvod>();
this.Kolicina = new List<int>();
}
}