using CAPI.Custom.Entities; using System.Data.Entity.ModelConfiguration; namespace CAPI.Custom.Data.Mappings { public class CustomerMapping : EntityTypeConfiguration { public CustomerMapping() { ToTable("qt_Customers"); HasKey(p => p.recId); Property(p => p.Contacts).HasColumnName("CustomerContacts_CustomerContacts_CustomerContacts"); Property(p => p.Code).HasColumnName("CustomerDetails_CustomerDetails_CustomerCode"); Property(p => p.Industry).HasColumnName("CustomerDetails_CustomerDetails_CustomerIndustry"); Property(p => p.LegalEntity).HasColumnName("CustomerDetails_CustomerDetails_CustomerLegalEntity"); Property(p => p.Notes).HasColumnName("CustomerDetails_CustomerDetails_CustomerNotes"); Property(p => p.PhysicalAddress).HasColumnName("CustomerDetails_CustomerDetails_CustomerPhysicalAddress"); Property(p => p.PhysicalAddressTemp).HasColumnName("CustomerDetails_CustomerDetails_CustomerPhysicalAddressTemp"); Property(p => p.PostalAddress).HasColumnName("CustomerDetails_CustomerDetails_CustomerPostalAddress"); Property(p => p.PostalAddressTemp).HasColumnName("CustomerDetails_CustomerDetails_CustomerPostalAddressTemp"); Property(p => p.PrimaryEmail).HasColumnName("CustomerDetails_CustomerDetails_CustomerPrimaryEmail"); Property(p => p.SalesPerson).HasColumnName("CustomerDetails_CustomerDetails_CustomerSalesPerson"); Property(p => p.Status).HasColumnName("CustomerDetails_CustomerDetails_CustomerStatus"); Property(p => p.Telephone).HasColumnName("CustomerDetails_CustomerDetails_CustomerTelephone"); Property(p => p.TradingName).HasColumnName("CustomerDetails_CustomerDetails_CustomerTradingName"); Property(p => p.VendorNumber).HasColumnName("CustomerDetails_CustomerDetails_CustomerVendorNumber"); Property(p => p.Vetted).HasColumnName("CustomerDetails_CustomerDetails_CustomerVetted"); Property(p => p.VettedBy).HasColumnName("CustomerDetails_CustomerDetails_CustomerVettedBy"); Property(p => p.Website).HasColumnName("CustomerDetails_CustomerDetails_CustomerWebsite"); Property(p => p.PortalAccess).HasColumnName("CustomerDetails_CustomerOnlinePortalSettings_CustomerPortalAccess"); Property(p => p.CGSCreditGuarantee).HasColumnName("CustomerFinancialandCreditDetails_CustomerCreditDetails_CustomerCGSCreditGuarantee"); Property(p => p.CGSDocument).HasColumnName("CustomerFinancialandCreditDetails_CustomerCreditDetails_CustomerCGSDocument"); Property(p => p.CGSNumber).HasColumnName("CustomerFinancialandCreditDetails_CustomerCreditDetails_CustomerCGSNumber"); Property(p => p.CreditApplication).HasColumnName("CustomerFinancialandCreditDetails_CustomerCreditDetails_CustomerCreditApplication"); Property(p => p.CreditApplicationDocument).HasColumnName("CustomerFinancialandCreditDetails_CustomerCreditDetails_CustomerCreditApplicationDocument"); Property(p => p.CreditLimitAmount).HasColumnName("CustomerFinancialandCreditDetails_CustomerCreditDetails_CustomerCreditLimitAmount"); Property(p => p.CreditNotes).HasColumnName("CustomerFinancialandCreditDetails_CustomerCreditDetails_CustomerCreditNotes"); Property(p => p.RegistrationNumber).HasColumnName("CustomerFinancialandCreditDetails_CustomerCreditDetails_CustomerRegistrationNumber"); Property(p => p.AccountsContact).HasColumnName("CustomerFinancialandCreditDetails_CustomerFinancialDetails_CustomerAccountsContact"); Property(p => p.AccountsEmail).HasColumnName("CustomerFinancialandCreditDetails_CustomerFinancialDetails_CustomerAccountsEmail"); Property(p => p.AccountsNumber).HasColumnName("CustomerFinancialandCreditDetails_CustomerFinancialDetails_CustomerAccountsNumber"); Property(p => p.Currency).HasColumnName("CustomerFinancialandCreditDetails_CustomerFinancialDetails_CustomerCurrency"); Property(p => p.DefaultDiscount).HasColumnName("CustomerFinancialandCreditDetails_CustomerFinancialDetails_CustomerDefaultDiscount"); Property(p => p.DefaultMargin).HasColumnName("CustomerFinancialandCreditDetails_CustomerFinancialDetails_CustomerDefaultMargin"); Property(p => p.GroupReportingCompany).HasColumnName("CustomerFinancialandCreditDetails_CustomerFinancialDetails_CustomerGroupReportingCompany"); Property(p => p.IsParent).HasColumnName("CustomerFinancialandCreditDetails_CustomerFinancialDetails_CustomerIsParent"); Property(p => p.ParentCompany).HasColumnName("CustomerFinancialandCreditDetails_CustomerFinancialDetails_CustomerParentCompany"); Property(p => p.PaymentTerms).HasColumnName("CustomerFinancialandCreditDetails_CustomerFinancialDetails_CustomerPaymentTerms"); Property(p => p.PaymentTermsFrom).HasColumnName("CustomerFinancialandCreditDetails_CustomerFinancialDetails_CustomerPaymentTermsFrom"); Property(p => p.StatementPreference).HasColumnName("CustomerFinancialandCreditDetails_CustomerFinancialDetails_CustomerStatementPreference"); Property(p => p.Type).HasColumnName("CustomerFinancialandCreditDetails_CustomerFinancialDetails_CustomerType"); Property(p => p.VATRate).HasColumnName("CustomerFinancialandCreditDetails_CustomerFinancialDetails_CustomerVATRate"); Property(p => p.VATRegistered).HasColumnName("CustomerFinancialandCreditDetails_CustomerFinancialDetails_CustomerVATRegistered"); // 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.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"); } } }