Click here to Skip to main content
15,899,313 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have sql query
SQL
select *
from tbl_AccountHead
where AccountHeadId  not in (
    select AccountHeadID
    from ACGroupACHead
    where ACGroupID=3
)

how to convert into linq(method form)?
Posted
Updated 6-May-15 20:34pm
v2

Check the solutions of this question
how to convert sql query to linq using C#?[^]
 
Share this answer
 
Try this:
C#
var data = AccountHead.Where(a=>a.ACGroupID!=3);


For further information, please see: LINQ - Sample Queries (101 samples)[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900