Ejemplo n.º 1
0
 public bool UpdateFromInfo(FuenteEntityKey EntityKey, FuenteEntityInfo EntityInfo)
 {
     try
     {
         FuenteEntityUpdate EntityUpdate = new FuenteEntityUpdate();
         EntityUpdate.LoadFromInfo(EntityInfo);
         return(this.Update(EntityKey, EntityUpdate));
     }
     catch (Exception ex)
     {
         Helpers.Logger.Logger.LogExceptionStatic(ex);
         throw ex;
     }
 }
Ejemplo n.º 2
0
 public void InsertFromInfo(FuenteEntityInfo EntityInfo)
 {
     try
     {
         FuenteEntityInsert EntityInsert = new FuenteEntityInsert();
         EntityInsert.LoadFromInfo(EntityInfo);
         this.Insert(EntityInsert);
     }
     catch (Exception ex)
     {
         Helpers.Logger.Logger.LogExceptionStatic(ex);
         throw ex;
     }
 }
Ejemplo n.º 3
0
        public FuenteEntityInfo DataRowToEntityInfo(DataRow dr)
        {
            FuenteEntityInfo medidaEntityInfo = new FuenteEntityInfo();

            try
            {
                medidaEntityInfo.FntID  = (string)dr["FntID"];
                medidaEntityInfo.Nombre = Convert.IsDBNull(dr["Nombre"]) ? (string)null : (string)dr["Nombre"];
            }
            catch (Exception ex)
            {
                Helpers.Logger.Logger.LogExceptionStatic(ex);
                throw ex;
            }
            return(medidaEntityInfo);
        }
Ejemplo n.º 4
0
 public FuenteEntityInfo.FuenteEntityInfoList DataTableToListOfEntityInfo(DataTable dt)
 {
     FuenteEntityInfo[] pArray = new FuenteEntityInfo[dt.Rows.Count];
     try
     {
         for (int index = 0; index < dt.Rows.Count; ++index)
         {
             pArray[index] = this.DataRowToEntityInfo(dt.Rows[index]);
         }
     }
     catch (Exception ex)
     {
         Helpers.Logger.Logger.LogExceptionStatic(ex);
         throw ex;
     }
     return(new FuenteEntityInfo.FuenteEntityInfoList(pArray));
 }