using FluentNHibernate.Mapping; using Sleis.Models; using System; namespace Sleis.Mapping { public class PublicReleasePointMap : ReleasePointMap { public PublicReleasePointMap() { Table("P_REL_PT"); Map(x => x.IsAdd).Column("IS_ADD_IND"); } } public abstract class ReleasePointMap : BaseAuthoredModelMap where T : ReleasePoint { public ReleasePointMap() { Id(x => x.Id).Column("REL_PT_ID"); Map(x => x.FacilityId).Column("FAC_SITE_ID"); Map(x => x.MasterReleasePointId).Column("MSTR_REL_PT_ID"); Map(x => x.TypeCode).Column("E_REL_PT_TYPE_CD"); Map(x => x.StatusCode).Column("E_REL_PT_STAT_CD"); Map(x => x.Description).Column("REL_PT_DESC"); Map(x => x.Identifier).Column("REL_PT_IDEN"); Map(x => x.StatusAsOfDate).Column("REL_PT_STAT_CD_DATE"); Map(x => x.StackHeightMeasurement).Column("REL_PT_STK_HGT_MEAS"); Map(x => x.StackHeightUomCode).Column("REL_PT_STK_HGT_UOM_CD"); Map(x => x.StackDiameterMeasurement).Column("REL_PT_STK_DIA_MEAS"); Map(x => x.StackDiameterUomCode).Column("REL_PT_STK_DIA_UOM_CD"); Map(x => x.Comment).Column("REL_PT_CMNT"); Component(x => x.Location); Map(x => x.GasTemp).Column("REL_PT_EXIT_GAS_TMP_MEAS"); Map(x => x.GasFlowRate).Column("REL_PT_GAS_FLOW_RATE_MEAS"); Map(x => x.GasFlowRateUomCode).Column("E_REL_PT_GAS_FLOW_RATE_UOM_CD"); Map(x => x.GasVel).Column("REL_PT_GAS_VEL_MEAS"); Map(x => x.GasVelUomCode).Column("E_REL_PT_GAS_VEL_UOM_CD"); Map(x => x.FugitiveHeight).Column("REL_PT_FGTV_HGT_MEAS"); Map(x => x.FugitiveHeightUom).Column("REL_PT_FGTV_HGT_UOM_CD"); Map(x => x.FugitiveWidth).Column("REL_PT_FGTV_WID_MEAS"); Map(x => x.FugitiveWidthUom).Column("REL_PT_FGTV_WID_UOM_CD"); Map(x => x.FugitiveLength).Column("REL_PT_FGTV_LEN_MEAS"); Map(x => x.FugitiveLengthUom).Column("REL_PT_FGTV_LEN_UOM_CD"); Map(x => x.FugitiveAngle).Column("REL_PT_FGTV_ANGLE_MEAS"); Map(x => x.FenceLineDistance).Column("REL_PT_FNC_LINE_DIST_MEAS"); Map(x => x.FenceLineDistanceUomCode).Column("REL_PT_FNC_LINE_DIST_UOM_CD"); Map(x => x.UsesFacilitySiteLocation).Column("FAC_SITE_LOC_IND"); } } }