I am trying to implement a generic interface with vb.
Public Interface IGenericRepository(Of T)
Function getAll() As IQueryable(Of T)
Function [get](ByVal id As Integer) As T
Sub saveOrUpdate(BaseDTO As T)
Sub delete(BaseDTO As T)
End Interface
Public Interface IWorkItemRepository
Inherits IGenericRepository(Of WorkItem)
Function getWorkItemsByRequestor(ByVal username As String) As IList(Of WorkItem)
End Interface
Public Class WorkItemRepository
Inherits genericRepository(Of WorkItem)
Implements IWorkItemRepository
End Class
I don't want to replicate the concrete implementations of the shared methods in Iworkitemrepository.
How do I achieve this with inheritance?