views:

396

answers:

2

How can i convert result in var to datatable without loop? Following is my code:-

var result = PhysicianLookUp.Find(Where.PhysicianLookUp.DateTimeStamp.Ge(DateTimeStamp));
+1  A: 

Presuming that what is returned is an IEnumerable, you should probably look at the answer to this question.

It's still a loop, but I don't think you can get away from that as far as I know.

Deeksy
A: 

Here are two links

You can check with the second method in below link

LINQ to Datatable\

One another link from MSDN

MSDn Link

Harryboy