Hi,
At work we have a data access layer that has been developed by one of developers. Things is it works well enough with the exception of one thing.
There is a class in this datalayer that subclasses System.Data.Datatable. So for example if I populated a System.Data.Dataset and then tried to put the first table of this dataset into this class like so:
I get an InvalidCastException. I have created the most basic of classes for myDatable.
Is there as interface missing or something?
At work we have a data access layer that has been developed by one of developers. Things is it works well enough with the exception of one thing.
There is a class in this datalayer that subclasses System.Data.Datatable. So for example if I populated a System.Data.Dataset and then tried to put the first table of this dataset into this class like so:
Code:
Dim dt as new myDatable
dt = ds.Tables(0)
Code:
Public Class myDatable: Inherits System.Data.DataTable
End Class
Is there as interface missing or something?