Getting error in INheriting my class from DbDataAdapter class

  • Thread starter Thread starter Puneet
  • Start date Start date
P

Puneet

hi,
i am getting error when i inherit my class from the
DbDataAdapter class.
It changes even the file icon to component file icon.
ANybody can help me out?
 
Hi,

thanks for replying.

Following is the error description of error i got.

An unhandled exception of type 'System.TypeLoadException'
occurred in MetaEngineTest.exe

Additional information: Could not load type
TransDigital.DataEngine.DataProvider.DPAdapter from
assembly TransDigital.DataEngine.DataProvider,
Version=1.0.1416.27647, Culture=neutral,
PublicKeyToken=null.

Further as i have previously mentioned as soon as u
inherit ur class from System.Data.Common.DbDataAdapter
it changes the file type from normal class to Component
class type, adding the designer to it.


----
And the code is listed below..

Imports System
Imports System.Data
Imports System.ComponentModel
Imports Microsoft.VisualBasic

Public Class DPAdapter
Inherits System.Data.Common.DbDataAdapter
Implements IDbDataAdapter

'''' Implementing the IDBDataAdapter Properties and
'''' also overriding the DbDataAdapter class
methods like Fill,FillSchema etc..

End Class
 
Hi,
thanks for replying.

Following is the error description of error i got.

An unhandled exception of type 'System.TypeLoadException'
occurred in MetaEngineTest.exe

Additional information: Could not load type
TransDigital.DataEngine.DataProvider.DPAdapter from
assembly TransDigital.DataEngine.DataProvider,
Version=1.0.1416.27647, Culture=neutral,
PublicKeyToken=null.

Are you sure that you don't have references problems?
Is this error raise on your adapter constructor?
Further as i have previously mentioned as soon as u
inherit ur class from System.Data.Common.DbDataAdapter
it changes the file type from normal class to Component
class type, adding the designer to it.

Since DbDataAdapter is derived from Component it is normal.
 
Back
Top