Ejemplo n.º 1
0
        public static Type convert(DB_TYPES type)
        {
            Type t = null;

            switch (type)
            {
            case DB_TYPES.MySQL:
                t = typeof(MySql.Data.MySqlClient.MySqlConnection);
                break;
            }
            return(t);
        }
Ejemplo n.º 2
0
        public static DB_TYPES convert(String type)
        {
            DB_TYPES dbType = (DB_TYPES)Enum.Parse(typeof(DB_TYPES), type);

            return(dbType);
        }