S
Sébastien
Ok, I have a fully functionnal OleDbDataAdapter I created with the
DataAdapter Wizard. Now (just to test it a little bit), I set
OleDbDataAdapter.InsertCommand to Nothing (I do the same with UpdateCommand
and DeleteCommand). I run my application and.... ehhhh, it still work fine.
No errors, nothing. So What am I suppose to do if I want to change the
CommandText of my InsertCommand ?
I guess there is something I don't catch, because when we create a new
CommandBuilder and we pass our DataAdapter in parameter, we don't need to do
:
DataAdapter.InsertCommand = CommandBuilder.InsertCommand
The only reason why we would do that is when we are like me and we're trying
to find out how these Commands work in the debugger =)
If someone could give me more information about what happen, I would greatly
appreciate.
Thank you.
DataAdapter Wizard. Now (just to test it a little bit), I set
OleDbDataAdapter.InsertCommand to Nothing (I do the same with UpdateCommand
and DeleteCommand). I run my application and.... ehhhh, it still work fine.
No errors, nothing. So What am I suppose to do if I want to change the
CommandText of my InsertCommand ?
I guess there is something I don't catch, because when we create a new
CommandBuilder and we pass our DataAdapter in parameter, we don't need to do
:
DataAdapter.InsertCommand = CommandBuilder.InsertCommand
The only reason why we would do that is when we are like me and we're trying
to find out how these Commands work in the debugger =)
If someone could give me more information about what happen, I would greatly
appreciate.
Thank you.