A
Aeden Jameson
Hi Folks,
I'm working with the ObjectDataSource class and I'm stuck on how I
can specify a shared generic method of my DAO in the SelectMethod
property of an ObjectDataSource. For example, I have
Public Class Repository
Public Shared Function GetByID(Of T)(ByVal ID As Object) As T
End Class
I'd like to be to call something like Respository.GetByID(Of Order)
(Session("TheOrderID"))
Cheers,
Aeden
I'm working with the ObjectDataSource class and I'm stuck on how I
can specify a shared generic method of my DAO in the SelectMethod
property of an ObjectDataSource. For example, I have
Public Class Repository
Public Shared Function GetByID(Of T)(ByVal ID As Object) As T
End Class
I'd like to be to call something like Respository.GetByID(Of Order)
(Session("TheOrderID"))
Cheers,
Aeden