L
Lionel LASKE
I'm working on my own implementation of an ADO.NET Data Provider
derived from IDbXXXX classes and MSDN sample
(http://msdn.microsoft.com/library/d...ide/html/cpconImplementingNETDataProvider.asp).
All is fine when I execute simple Command and DataReader but I got an
error with DataAdapter.
Running of SelectCmd and InsertCmd work fine but each UpdateCmd or
DeleteCmd thrown a DBConcurrencyException.
It seems that problem is that DataAdapter call ExecuteReader instead
of ExecuteNonQuery on InsertCmd, UpdateCmd and DeleteCmd. So, number
of row affected is probably incorrect.
Do I miss something or is it an usual way of working for a DataAdapter
?
Why ExecuteReader is called for an Update and a Delete without any
result expected ?
Thanks in advance for your help or advices.
Lionel.
derived from IDbXXXX classes and MSDN sample
(http://msdn.microsoft.com/library/d...ide/html/cpconImplementingNETDataProvider.asp).
All is fine when I execute simple Command and DataReader but I got an
error with DataAdapter.
Running of SelectCmd and InsertCmd work fine but each UpdateCmd or
DeleteCmd thrown a DBConcurrencyException.
It seems that problem is that DataAdapter call ExecuteReader instead
of ExecuteNonQuery on InsertCmd, UpdateCmd and DeleteCmd. So, number
of row affected is probably incorrect.
Do I miss something or is it an usual way of working for a DataAdapter
?
Why ExecuteReader is called for an Update and a Delete without any
result expected ?
Thanks in advance for your help or advices.
Lionel.