using CAPI.Custom.Entities; using System.Data.Entity.ModelConfiguration; namespace CAPI.Custom.Data.Mappings { public class SalesExtraNoteMapping : EntityTypeConfiguration { public SalesExtraNoteMapping() { ToTable("pal_SalesExtraNote"); HasKey(p => p.recId); Property(p => p.dateSaved).HasColumnName("dateSaved"); Property(p => p.note).HasColumnName("note"); Property(p => p.number).HasColumnName("number"); Property(p => p.recId).HasColumnName("recId"); Property(p => p.type).HasColumnName("type"); } } }