Using EntityFramework, I can get a list of entities of a certain type using the following syntax:
List customers = ((IQueryable
You can use dynamic linq, check it in here. It is also available on nuget