How to convert IEnumerable collection to IQueryable collection ?

IEnumerable collection can be converted to IQueryable collection using AsQueryable method.

Example :
Object arrSearch is of IEnumerable type
To convert into IQueryable  use below :
IQueryable arrQuerySearch  = arrSearch.AsQueryable() ;

No comments:

Popular Posts