using CAPI.Custom.Entities; using System.Data.Entity.ModelConfiguration; namespace CAPI.Custom.Data.Mappings { public class ContactMapping : EntityTypeConfiguration { public ContactMapping() { ToTable("qt_Contacts"); HasKey(p => p.recId); Property(p => p.CustomerCode).HasColumnName("ContactDetails_ContactCustomerandSupplierLink_ContactCustomerCode"); Property(p => p.CustomerName).HasColumnName("ContactDetails_ContactCustomerandSupplierLink_ContactCustomerName"); Property(p => p.SupplierCode).HasColumnName("ContactDetails_ContactCustomerandSupplierLink_ContactSupplierCode"); Property(p => p.SupplierName).HasColumnName("ContactDetails_ContactCustomerandSupplierLink_ContactSupplierName"); Property(p => p.BirthDate).HasColumnName("ContactDetails_ContactDetails_ContactBirthDate"); Property(p => p.Email).HasColumnName("ContactDetails_ContactDetails_ContactEmail"); Property(p => p.Mobile).HasColumnName("ContactDetails_ContactDetails_ContactMobile"); Property(p => p.Name).HasColumnName("ContactDetails_ContactDetails_ContactName"); Property(p => p.Notes).HasColumnName("ContactDetails_ContactDetails_ContactNotes"); Property(p => p.PortalUser).HasColumnName("ContactDetails_ContactDetails_ContactPortalUser"); Property(p => p.Position).HasColumnName("ContactDetails_ContactDetails_ContactPosition"); Property(p => p.Role).HasColumnName("ContactDetails_ContactDetails_ContactRole"); Property(p => p.Surname).HasColumnName("ContactDetails_ContactDetails_ContactSurname"); Property(p => p.Telephone).HasColumnName("ContactDetails_ContactDetails_ContactTelephone"); // Inherited Property(p => p.allowClone).HasColumnName("allowClone"); Property(p => p.allowEdit).HasColumnName("allowEdit"); Property(p => p.allowRemove).HasColumnName("allowRemove"); Property(p => p.allowView).HasColumnName("allowView"); Property(p => p.cloneAccessType).HasColumnName("cloneAccessType"); Property(p => p.editAccessType).HasColumnName("editAccessType"); Property(p => p.isActive).HasColumnName("isActive"); Property(p => p.isComplete).HasColumnName("isComplete"); Property(p => p.itemID).HasColumnName("itemID"); Property(p => p.linkUser).HasColumnName("linkUser"); Property(p => p.ParentSurfaceItemId).HasColumnName("ParentSurfaceItemId"); Property(p => p.recId).HasColumnName("recId"); Property(p => p.removeAccessType).HasColumnName("removeAccessType"); Property(p => p.showWizardStatus).HasColumnName("showWizardStatus"); Property(p => p.surfaceId).HasColumnName("surfaceId"); Property(p => p.surfaceLinkItems).HasColumnName("surfaceLinkItems"); Property(p => p.userLinkEmail).HasColumnName("userLinkEmail"); Property(p => p.userLinkId).HasColumnName("userLinkId"); Property(p => p.userType).HasColumnName("userType"); Property(p => p.viewAccessType).HasColumnName("viewAccessType"); } } }