آنچه که متوجه شدم شما دنبال این هستید که با یک متد بتونید از صدها جدول و برمبنای ID، ردیف مورد نظر را دریافت کنید. یک نگاهی به این صفحه بندازید.
https://codingblast.com/entity-frame...ic-repository/

این مورد شدنی هست. به نمونه زیر توجه کنید:

Namespace IRepositories
Interface ICommonRepository
Function GetValid(ByVal type As Type, ByVal id As Integer) As Boolean
End Interface
End Namespace

پیاده سازی متد:

Namespace Repositories
Public Class CommonRepository
Inherits IRepositories.ICommonRepository

Private ReadOnly db As Contexts.Context

Public Sub New(ByVal Context As Contexts.Context)
db = cesContext
End Sub

Public Function GetValid(ByVal type As Type, ByVal id As Integer) As Boolean
Dim ent = db.Find(type, id)
If ent Is Nothing Then Throw New Exception("Invalid data")
Dim result As Boolean = CBool(ent.[GetType]().GetProperty("fldValid").GetValue(ent))
Return result
End Function
End Class
End Namespace