Ejemplo n.º 1
0
 public DataTable SearchOne(NutrienteEntityKey EntityKey)
 {
     try
     {
         if (!EntityKey.Validate())
         {
             throw new Exception(EntityKey.ErroresQueInvalidanLaEntidad);
         }
         return(this.CreateDataAccess().SearchOne(EntityKey));
     }
     catch (Exception ex)
     {
         Helpers.Logger.Logger.LogExceptionStatic(ex);
         throw ex;
     }
 }
Ejemplo n.º 2
0
 public NutrienteEntityInfo SearchOne(NutrienteEntityKey EntityKey, bool NoUtilizar)
 {
     try
     {
         if (!EntityKey.Validate())
         {
             throw new Exception(EntityKey.ErroresQueInvalidanLaEntidad);
         }
         return(this.DataRowToEntityInfo(this.CreateDataAccess().SearchOne(EntityKey).Rows[0]));
     }
     catch (Exception ex)
     {
         Helpers.Logger.Logger.LogExceptionStatic(ex);
         throw ex;
     }
 }
Ejemplo n.º 3
0
 public bool UpdateNull(NutrienteEntityKey EntityKey, NutrienteEntityUpdateNullFields EntityUpdateNullFields)
 {
     try
     {
         if (!EntityKey.Validate())
         {
             return(false);
         }
         return(this.CreateDataAccess().UpdateNull(EntityKey, EntityUpdateNullFields));
     }
     catch (Exception ex)
     {
         Helpers.Logger.Logger.LogExceptionStatic(ex);
         throw ex;
     }
 }