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); }
public static DB_TYPES convert(String type) { DB_TYPES dbType = (DB_TYPES)Enum.Parse(typeof(DB_TYPES), type); return(dbType); }