I'm getting this error when I issue this:
DataContext.DBProjectEntities.Projects.Where(xWhere, parameterList.ToArray)
The command parameter syntax '@0' is not valid. Near line 6, column 37.
xWhere
is a string containing value"(ProjectStatuses.Any(DepartmentID = @0))"
parameterList
isDim parameterList As New List(Of ObjectParameter)
It contains one element with value 1 of type Int32 which corresponds to the type of DepartmentID.