So maybe someone can tell me what I am doing wrong here. I try to retrieve one row from a table that has only two columns in it, ID and HighestIDNumber. Each time I run the code, I get the "Invaild Column Name" error. I can not figure out why.
Public Shared Function NextEID() As String
Using context As New iTracContext()
Dim highestEid As highestEmployeeNumber
highestEid = context.HighestEmpNumber.FirstOrDefault(Function(e) e.hightestIDnumber > 0)
End Using
End Function
I have verified the column names are exactly the same everywhere it is used.