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;
     }
 }
 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;
     }
 }
        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);
        }
 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));
 }