using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using wispro.sp.entity; namespace wispro.sp.datamap { public class ItemStaffMap : IEntityTypeConfiguration { public void Configure(EntityTypeBuilder builder) { //builder.HasNoKey(); //builder.HasKey(o=> new {o.DoPersonId,o.ItemId }); //builder.HasOne(o => o.DoPerson).WithMany().HasForeignKey("DoPersonId"); //builder.HasOne(o => o.Item).WithMany(x=>x.DoPersons).HasForeignKey("ItemId"); } } }