I have this query that I tried to join 2 tables together, one which holds the product name, and product numbers, and take a product number, and go to the other where to find a Art_no which is like the product number.
ProductNamesList = (From ProductSeries In context.Products
From ProductRevisions In context.TestResults
Where ((ProductSeries.Product = CurrentProduct) And (ProductRevisions.Art_no.Contains(ProductSeries.Product_no)))
Order By ProductRevisions.Art_no
Select ProductRevisions.Art_no).Distinct.ToList
Hope anyone can help,
Thank you.
Check the post : SQL to LINQ ( Case 7 – Filter data by using IN and NOT IN clause)
you solution is divided into two queries as below