P
Paddy
Hi, given the following method signature in a data tier:
public MyTypedDataSet Update(MyTypedDataSet ds)
and the following business layer code:
MyTypedDataSet dsModified = new MyTypedDataSet ();
...
// some CRUD operations here with the dsModified dataset.
...
// let's suppose MyDataTier is a class handling database operations
MyDataTier.Update (dsModified.GetChanges()); // PROBLEM HERE!!!
Well, the compiler complains that it cannot convert a DataSet to a
MyTypedDataSet.
It turns up that the method GetChanges of a Typed Dataset returns a
DataSet, not a class of MyTypedDataSet (as I expected to do)
I need to pass *ONLY* the changes made to the DataSet, no the whole
DataSet and of course that I want to pass a 'MyTypedDataSet' class.
Could somebody help me to clarify this issue? (I don't want to use
un-typed dataset's)
Thanks.
Paddy.
public MyTypedDataSet Update(MyTypedDataSet ds)
and the following business layer code:
MyTypedDataSet dsModified = new MyTypedDataSet ();
...
// some CRUD operations here with the dsModified dataset.
...
// let's suppose MyDataTier is a class handling database operations
MyDataTier.Update (dsModified.GetChanges()); // PROBLEM HERE!!!
Well, the compiler complains that it cannot convert a DataSet to a
MyTypedDataSet.
It turns up that the method GetChanges of a Typed Dataset returns a
DataSet, not a class of MyTypedDataSet (as I expected to do)
I need to pass *ONLY* the changes made to the DataSet, no the whole
DataSet and of course that I want to pass a 'MyTypedDataSet' class.
Could somebody help me to clarify this issue? (I don't want to use
un-typed dataset's)
Thanks.
Paddy.