ef rdzeń wiele do wielu płynnych interfejsów API

        modelBuilder.Entity<Customer>()
            .HasMany(p => p.Colors)
            .WithMany(p => p.Customers)
            .UsingEntity<Dictionary<string, object>>(
                "CustomerColor",
                j => j
                    .HasOne<Color>()
                    .WithMany()
                    .HasForeignKey("ColorId"),
                j => j
                    .HasOne<Customer>()
                    .WithMany()
                    .HasForeignKey("CustomerId"));
Marko Mijuskovic