コード例 #1
0
        public void Update(DamageReport obj)
        {
            WE_T_SF_DAMAGE_RPT entity = MapObjectToEntity(obj);

            if (entity != null)
            {
                unitOfWork.DamageReportRepo.Update(entity);
            }
        }
コード例 #2
0
 public DamageReport MapEntityToObject(WE_T_SF_DAMAGE_RPT obj)
 {
     if (obj != null)
     {
         return(new DamageReport
         {
             WitnessAddress = obj.WITNESS_ADDR,
             WitnessCity = obj.WITNESS_CITY,
             WitnessName = obj.WITNESS_NAME,
             WitnessPhone = obj.WITNESS_PHONE,
             WitnessSequenceNumber = obj.WITNESS_SEQ,
             WitnessState = obj.WITNESS_STATE,
             WitnessZip = obj.WITNESS_ZIP,
             WorkRequest = obj.CD_WR
         });
     }
     return(null);
 }
コード例 #3
0
 private void CreateDamageReport(WE_T_SF_DAMAGE_RPT entity)
 {
     unitOfWork.DamageReportRepo.Insert(entity);
     unitOfWork.Save();
 }
コード例 #4
0
 public DamageReport GetByEntity(WE_T_SF_DAMAGE_RPT entity)
 {
     return(MapEntityToObject(entity));
 }