I have problems with IQueryable. What I want to do is write library that allows access to database. But first - in my database there are 3 tables - drivers, cars, tracks. And now how to make a class (or classes) that implements IQueryable and allows lazy loading. I don't want to access like get all rows to list and that filter. Should I write 3 model classes and implement IQueryable within each class or write 3 model classes and another class (classes?) implementing IQueryable? I was looking for some tutorials but almost every site is telling about differences between IQueryable and IEnumerable. I am a bit confused right now. Could anyone give me some guide how to implement this interface correctly?
Thank in advance to any answer.