예제 #1
0
 public bool GetBoolean(string column)
 {
     try
     {
         return(TryParse.ToBoolean(this.dr[column]));
     }
     catch
     {
         throw new Exception("Impossível Fazer um Get Bool");
     }
 }
예제 #2
0
 public long GetLong(string column)
 {
     try
     {
         return(TryParse.ToLong(this.dr[column]));
     }
     catch (Exception)
     {
         return(0);
     }
 }
예제 #3
0
 public double GetDouble(string column)
 {
     try
     {
         return(TryParse.ToDouble(this.dr[column]));
     }
     catch
     {
         return(0.00);
     }
 }
예제 #4
0
 public int GetInteger(string column, int _default = 0)
 {
     try
     {
         return(TryParse.ToInt32(this.dr[column]));
     }
     catch (Exception)
     {
         return(_default);
     }
 }
예제 #5
0
 public decimal GetDecimal(string column)
 {
     try
     {
         return(TryParse.ToDecimal(this.dr[column]));
     }
     catch
     {
         return(0);
     }
 }