Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var sqlConnection = new SqlConnection("...");
            sqlConnection.Timeout = TimeSpan.FromSeconds(1);
            var dbCommand = new DbCommand(sqlConnection, "SQL instruction");
            dbCommand.Execute();

            var oracleConnection = new OracleConnection("...");
            dbCommand = new DbCommand(oracleConnection, "Oracle instruction");
            dbCommand.Execute();

            Console.ReadKey();
        }
Ejemplo n.º 2
0
 public void ConnectionString_IsNullOrEmpty_ThrowsException()
 {
     var oracleConnection = new OracleConnection(null);
     oracleConnection = new OracleConnection(string.Empty);
 }