Inheritance: System.Data.Common.DbDataAdapter
Example #1
0
        public void SelectTests()
        {
            var adapter = new DeveelDbDataAdapter("SELECT * FROM test_table");
            var command = adapter.SelectCommand;

            Assert.IsNotNull(command);
            Assert.AreEqual("SELECT * FROM test_table", command.CommandText);
        }
Example #2
0
        public void SelectTests()
        {
            var adapter = new DeveelDbDataAdapter("SELECT * FROM test_table");
            var command = adapter.SelectCommand;

            Assert.IsNotNull(command);
            Assert.AreEqual("SELECT * FROM test_table", command.CommandText);
        }
        public void BuildInsert()
        {
            var adapter = new DeveelDbDataAdapter(connection, "SELECT * FROM test_table");
            var builder = new DeveelDbCommandBuilder(adapter);

            var command = builder.GetInsertCommand();

            Assert.IsNotNull(command);
        }
Example #4
0
        public void BuildInsert()
        {
            var adapter = new DeveelDbDataAdapter(connection, "SELECT * FROM test_table");
            var builder = new DeveelDbCommandBuilder(adapter);

            var command = builder.GetInsertCommand();

            Assert.IsNotNull(command);
        }
Example #5
0
        public void UpdateTests()
        {
            var adapter = new DeveelDbDataAdapter();
            adapter.UpdateCommand = new DeveelDbCommand("UPDATE test_table SET a = 22 WHERE b = 'one'");

            var command = adapter.UpdateCommand;

            Assert.IsNotNull(command);
            Assert.AreEqual("UPDATE test_table SET a = 22 WHERE b = 'one'", command.CommandText);
        }
Example #6
0
        public void UpdateTests()
        {
            var adapter = new DeveelDbDataAdapter();

            adapter.UpdateCommand = new DeveelDbCommand("UPDATE test_table SET a = 22 WHERE b = 'one'");

            var command = adapter.UpdateCommand;

            Assert.IsNotNull(command);
            Assert.AreEqual("UPDATE test_table SET a = 22 WHERE b = 'one'", command.CommandText);
        }
 public DeveelDbCommandBuilder(DeveelDbDataAdapter dataAdapter)
 {
     QuotePrefix = "'";
     QuoteSuffix = "'";
     DataAdapter = dataAdapter;
 }
 public DeveelDbCommandBuilder(DeveelDbDataAdapter dataAdapter)
 {
     QuotePrefix = "'";
     QuoteSuffix = "'";
     DataAdapter = dataAdapter;
 }