public static void Main() { var dbEngineFactory = new DbEngineFactory(); var dbengine = dbEngineFactory.getInstance("MysqlDb"); Console.WriteLine(dbengine.runQuery("test")); }