A
Antonio Paglia
Does somebody know how to Update a Table (Dataset) without using Stored
Procedure. I'm using in-line SQL with Oracle.
Dim db As Database = DatabaseFactory.CreateDatabase()
dbCommandWrapper = db.GetSqlStringCommandWrapper(MySelectCommand)
mDataSet = New DataSet("MyTable")
mDataSet = db.ExecuteDataSet(dbCommandWrapper) ' return a dataset
......
' makes changes to data
Dim rowsAffected As Integer = db.UpdateDataSet(mDataSet, "MyTable",
InsertCommand, UpdateCommand, DeleteCommand , UpdateBehavior.Standard)
How can I create my InsertCommand, UpdateCommand and DeleteCommand ???
I don't want to OracleCommandBuilder because this is dependent of Oracle
Provider.
Any help will be appreciated
TIA
Antonio
Procedure. I'm using in-line SQL with Oracle.
Dim db As Database = DatabaseFactory.CreateDatabase()
dbCommandWrapper = db.GetSqlStringCommandWrapper(MySelectCommand)
mDataSet = New DataSet("MyTable")
mDataSet = db.ExecuteDataSet(dbCommandWrapper) ' return a dataset
......
' makes changes to data
Dim rowsAffected As Integer = db.UpdateDataSet(mDataSet, "MyTable",
InsertCommand, UpdateCommand, DeleteCommand , UpdateBehavior.Standard)
How can I create my InsertCommand, UpdateCommand and DeleteCommand ???
I don't want to OracleCommandBuilder because this is dependent of Oracle
Provider.
Any help will be appreciated
TIA
Antonio