static void Main(string[] args)
        {
            var sqlConnection = new SqlConnection("sql connectionstring");

            sqlConnection.OpenConnection();
            sqlConnection.CloseConnection();

            var oracleConnection = new OracleConnection("oracle connectionstring");

            oracleConnection.OpenConnection();
            oracleConnection.CloseConnection();

            DbCommand dbCommand = new DbCommand(sqlConnection);

            dbCommand.Execute();

            Console.ReadLine();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            DbCommand dbCommand = new DbCommand(new SqlConnection("https://codewithmosh.com/courses/224763/lectures/3497989"), "SELECT FROM FAMILY ALL MOTHERS WHERE NAME IS 'ALA'");

            dbCommand.Execute();
        }