コード例 #1
0
 public static Comunicaciones_Tv InsertarComunicacionesTV(Comunicaciones_Tv comm)
 {
     using (var db = new DB_BIM())
     {
         return(db.AddElemento <Comunicaciones_Tv>(comm.GetType(), comm));
     }
 }
コード例 #2
0
        public static Comunicaciones_Tv ToProject(this T_Comunicaciones_Tv t_Comunicaciones)
        {
            var _tf     = new DB_PLANTILLA().GetSingleRecord <T_TF>(x => x.Id == t_Comunicaciones.Tf).Convert <TF>();
            var _td     = new DB_PLANTILLA().GetSingleRecord <T_TD>(x => x.Id == t_Comunicaciones.Td).Convert <TD>();
            var _td_pos = new DB_PLANTILLA().GetSingleRecord <T_TD_Pos>(x => x.Id == t_Comunicaciones.TD_Pos).Convert <TD_Pos>();
            var _upsc   = new DB_PLANTILLA().GetSingleRecord <T_UPSC>(x => x.Id == t_Comunicaciones.UPSC).Convert <UPSC>();
            var _ttTv   = new DB_PLANTILLA().GetSingleRecord <T_TT_TV>(x => x.Id == t_Comunicaciones.TT_TV).Convert <TT_TV>();
            var _di     = new DB_PLANTILLA().GetSingleRecord <T_DI>(x => x.Id == t_Comunicaciones.Di).Convert <DI>();
            var _altv   = new DB_PLANTILLA().GetSingleRecord <T_ALTV>(x => x.Id == t_Comunicaciones.Altv).Convert <ALTV>();
            var _upsi   = new DB_PLANTILLA().GetSingleRecord <T_UPSI>(x => x.Id == t_Comunicaciones.UPSI).Convert <UPSI>();

            Comunicaciones_Tv _comm = new Comunicaciones_Tv()
            {
                TF1     = _tf,
                TD1     = _td,
                TD_Pos1 = _td_pos,
                UPSC1   = _upsc,
                TT_TV1  = _ttTv,
                DI1     = _di,
                ALTV1   = _altv,
                UPSI1   = _upsi
            };

            return(_comm);
        }