Ejemplo n.º 1
0
        public MySqlDbType GetType(DataBaseParam param)
        {
            switch (param.ParamType)
            {
            case ParamType.Text:
            {
                return(MySqlDbType.Text);
            }

            case ParamType.Integer:
            {
                return(MySqlDbType.Int32);
            }

            case ParamType.DateTime:
            {
                return(MySqlDbType.DateTime);
            }

            case ParamType.File:
            {
                return(MySqlDbType.Blob);
            }

            default:
            {
                return(MySqlDbType.Text);
            }
            }
        }
Ejemplo n.º 2
0
 public void AddParam(DataBaseParam dbparam)
 {
     if (paramList == null)
     {
         paramList = new ArrayList();
     }
     this.paramList.Add(dbparam);
 }