I am looking for VB.NET code to join 2 tables to complete Master Detail for Winform using LINQ.
I found the following code snippet in C#. However VB.NET compiler does not like this syntax.
Please kindly provide me correct VB.NET code (I believe INTO
is the error cause):
var matchingEmployees =
from dept in Departments
join emp in Employees on dept.DeptNo equals emp.DeptNo
INTO AvailableEmployees
SELECT NEW { department = dept, employees = AvailableEmployees };
REF: Article "Creating Master Detail representation of data display in Winforms using LINQ (C#)" from Code Project