Search code examples
linqsubsoniciqueryable

IQueryable for Subsonic Stored Procedure


I need to use stored procedure to get data from DB, but I would also like to use IQueryable to add some filtering to results. I'm using subsonic and for now can't see a way to use subsonic sp and IQueryable. The only idea I have is to make a view that will perform all required joins. Then perform call to view like to table with subsonic:

MyView.All()

Subsonic All returns IQueryable and instead of adding where in sp I can add filter clauses in code. Not sure if this is viable solution or not?


Solution

  • Ok, I`ve finished with this solution to add views to my SubSonic objects and IQueryable to add filtering.