상속: System.Data.Common.DbDataAdapter
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #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);
        }
예제 #7
0
 public DeveelDbCommandBuilder(DeveelDbDataAdapter dataAdapter)
 {
     QuotePrefix = "'";
     QuoteSuffix = "'";
     DataAdapter = dataAdapter;
 }
 public DeveelDbCommandBuilder(DeveelDbDataAdapter dataAdapter)
 {
     QuotePrefix = "'";
     QuoteSuffix = "'";
     DataAdapter = dataAdapter;
 }