aspvbnetnerd
Programmer
I have question that I was hoping that someone could help me with.
I would like to have one Class that handles all insert to the database (IDataInsert) and another Class that handles all the Update to the database (IDataUpdate)
Then I want to have one Class that handles those two classes (IDataAdapter)
I notice a problem is that if I have the same sub name in both IDataUpdate and IDataInsert then one of the sub is called Init and the other called Init1
I want to be able to have the sub name in my DataAdapter class how should I fix this?
Class IDataInsert
Class IDataUpdate
Class DataUpdapter that Implements IDataUpdate and IDataInsert
Regards
George
I would like to have one Class that handles all insert to the database (IDataInsert) and another Class that handles all the Update to the database (IDataUpdate)
Then I want to have one Class that handles those two classes (IDataAdapter)
I notice a problem is that if I have the same sub name in both IDataUpdate and IDataInsert then one of the sub is called Init and the other called Init1
I want to be able to have the sub name in my DataAdapter class how should I fix this?
Class IDataInsert
Code:
Public Interface IDataInsert
Sub init(ByRef connString As String)
End Interface
Class IDataUpdate
Code:
Public Interface IDataUpdate
Sub init(ByRef connString As String)
End Interface
Class DataUpdapter that Implements IDataUpdate and IDataInsert
Code:
Public Class DataAdapter
Implements IDataInsert, IDataUpdate
Public Sub init(ByRef connString As String) Implements IDataInsert.init
End Sub
Public Sub init1(ByRef connString As String) Implements IDataUpdate.init
End Sub
End Class
Regards
George