Beispiel #1
0
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            //_Db.RunSql("INSERT INTO dbo.TestTable(Name)VALUES(@name)", _Db.CreateParam("@name", this.textEdit1.Text));

            //IDataParameter[] xsp = {_Db.CreateParam("@LName", this.textEdit1.Text),
            //                      _Db.CreateParam("@FName", this.textEdit2.Text),
            //                      _Db.CreateParam("@MName", this.textEdit3.Text)};
            _Db.RunSql("INSERT INTO dbo.TestTable(LName,)VALUES(@LName)", _Db.CreateParam("@LName", this.textEdit3.Text));
            this.gridControl1.DataSource = _Db.CreateTable("SELECT * FROM dbo.TestTable");
        }