I wrote the following method.
public T GetByID(int id) { var dbcontext = DB; var table = dbcontext.GetTable(); return table.ToList().Sin
What if you rework this to use GetTable().Where(...), and put your filtering there?
That would be more efficient, since the Where extension method should take care of your filtering better than fetching the entire table into a list.