I have Item table which have manyTomany to itself:
public virtual ICollection<Item> Related { get; set; }
modelBuilder.Entity<Item>().HasMany(x => x.Related ).WithMany();
Data:
Item_Id Item_Id1
8 2
8 3
8 4
How can I allow duplicate , meaning allow another 8-2 for example, when I try to insert another "duplicate" data , it shows only 1.