Comparing IEnuerablenad ToList() with AsQueryable().Select
- ObjectFacotry of1 = new ObjectFacotry();
List<ObjectFacotry> listempdb = of1.cEmp();
- AsQueryable() : IQueryable System.Linq Namespace
var query1 = of1.cEmp().AsQueryable().Select(e => e.empno
== 7902);
- AsEnumerable : IEnumerable System.Collections Namespace.
- IEnumerable<ObjectFacotry> ienumempdb = of1.cEmp().AsEnumerable().Where(e
=> e.job == "CLERK");
var varempdb = of1.cEmp().AsEnumerable().Where(e => e.job ==
"CLERK").OrderBy(e1=>e1.ename);
|