translate 'In' operator in SQL to LINQ
Just found out there is no 'In' in LINQ, instead there is an ANY in LINQ:
e.g.
var abc=
    from d in mydb.department
    where mydb.employee.Any(e => e.ProductID == d.ManagerId)
    select d;
Achievement provides the only real pleasure in life
Just found out there is no 'In' in LINQ, instead there is an ANY in LINQ:
e.g.
var abc=
    from d in mydb.department
    where mydb.employee.Any(e => e.ProductID == d.ManagerId)
    select d;
Posted by
SF
at
11:29 am
 
No comments:
Post a Comment