In what state you cannot use Equals (Operator), for example, Join LINQ query. Here, Equals is an object class method, so you can access using '.' e.g. employee.AncillaryId.Equals(iCompanyId)
And one more thing is where the condition for the new line of VB.net requires "_".
eg.
From b In context.H_Table_B Join employee In context.Employees On b.EmployeeId Equals (employee.EmployeeId) Join company In context.Companies On employee.CompanyId Equals (company.CompanyId) Where employee.AncillaryId.Equals(iPerId) _ And company.AncillaryId.Equals(iCompanyId) _ And ((b.EndDate Is Nothing) Or (b.EndDate.Equals(DateTime.Today)))
source share