Beispiel #1
0
 public void AddParam(string name, TimDbType type, int size, object value)
 {
     this.ParseSQL();
     if (type != TimDbType.Blob)
     {
         this.ParamByName(name).ParamterType = type;
         this.ParamByName(name).Size         = size;
         this.ParamByName(name).Value        = value;
     }
     else
     {
         this.ParamByName(name).ParamterType = type;
         this.ParamByName(name).Size         = size;
         bool flag = value is string;
         if (flag)
         {
             this.ParamByName(name).Value = Encoding.Default.GetBytes((string)value);
         }
         else
         {
             bool flag2 = value is byte[];
             if (flag2)
             {
                 this.ParamByName(name).Value = value;
             }
         }
     }
 }
Beispiel #2
0
 public void AddParamBySourceColumn(string name, TimDbType type, int size, string SourceColumn)
 {
     this.ParseSQL();
     this.ParamByName(name).ParamterType = type;
     this.ParamByName(name).Size         = size;
     this.ParamByName(name).SourceColumn = SourceColumn;
 }
Beispiel #3
0
 public void AddParam(string name, TimDbType type, int size)
 {
     this.ParseSQL();
     this.ParamByName(name).ParamterType = type;
     this.ParamByName(name).Size         = size;
 }
Beispiel #4
0
 public void SetValue(object pValue, TimDbType pt)
 {
     this.m_value = pValue;
     this.pType   = pt;
 }