Inheritance: System.Data.Common.DbDataAdapter
Beispiel #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);
        }
Beispiel #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);
        }
        public void BuildInsert()
        {
            var adapter = new DeveelDbDataAdapter(connection, "SELECT * FROM test_table");
            var builder = new DeveelDbCommandBuilder(adapter);

            var command = builder.GetInsertCommand();

            Assert.IsNotNull(command);
        }
Beispiel #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);
        }
Beispiel #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;
 }