using CAPI.Custom.Entities; using System; using System.Collections.Generic; using System.Data.Entity.ModelConfiguration; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CAPI.Custom.Data.Mappings { public class BrandMapping : EntityTypeConfiguration { public BrandMapping() { ToTable("qt_Brands"); HasKey(p => p.recId); Property(p => p.Abbreviation).HasColumnName("Brands_Brands_BrandAbbreviation"); Property(p => p.Name).HasColumnName("Brands_Brands_BrandName"); // 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"); } } }