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<ItemStaff>
    {
        public void Configure(EntityTypeBuilder<ItemStaff> 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");
        }

    }

}
