Example #1
0
 public string FetchString(SqlDataReader reader, int iField, string sDefaultValue)
 {
     if (reader.IsDBNull(iField))
     {
         return(sDefaultValue);
     }
     else if (reader.GetFieldType(iField) == typeof(System.Boolean))
     {
         return(ZData.FetchString(reader.GetBoolean(iField)));
     }
     else if (reader.GetFieldType(iField) == typeof(System.DateTime))
     {
         return(ZData.FetchString(reader.GetDateTime(iField)));
     }
     else
     {
         return(reader.GetValue(iField).ToString());
     }
 }
Example #2
0
 public string QueryString(string sCmd)
 {
     return(ZData.FetchString(QueryValue(sCmd, null)));
 }
Example #3
0
 public string QueryString(string sCmd, Dictionary <string, object> parameters)
 {
     return(ZData.FetchString(QueryValue(sCmd, parameters)));
 }