using CAPI.Custom.Entities; using System.Data.Entity.ModelConfiguration; namespace CAPI.Custom.Data.Mappings { public class SurfaceMapping : EntityTypeConfiguration { public SurfaceMapping() { ToTable("pal_Surface"); HasKey(p => p.recId); Property(p => p.columnCount).HasColumnName("columnCount"); Property(p => p.dateCreated).HasColumnName("dateCreated"); Property(p => p.isActive).HasColumnName("isActive"); Property(p => p.isCapitalizeInput).HasColumnName("isCapitalizeInput"); Property(p => p.isComparable).HasColumnName("isComparable"); Property(p => p.isDefaultToForm).HasColumnName("isDefaultToForm"); Property(p => p.isDisableRequired).HasColumnName("isDisableRequired"); Property(p => p.isLinkedSurface).HasColumnName("isLinkedSurface"); Property(p => p.isModal).HasColumnName("isModal"); Property(p => p.isPublished).HasColumnName("isPublished"); Property(p => p.isWizzard).HasColumnName("isWizzard"); Property(p => p.linkUser).HasColumnName("linkUser"); Property(p => p.name).HasColumnName("name"); Property(p => p.recId).HasColumnName("recId"); Property(p => p.surface).HasColumnName("surface"); Property(p => p.surfaceActionId).HasColumnName("surfaceActionId"); } } }