This question is locked. New answers and comments are not allowed.
I am making use of the ORM an application and needed to query record from mysql backend and would require the result to be rendered on radgridview.
when the table involed in the join is just two it worked perfectlly but on trying to increase the number of table involved in the query to three as shown below
and tried binding the resultset to a radgrid a get the following error
System.ArgumentOutOfRangeException was unhandled
Message="Left join key not an extent bound iterator Parameter name: leftField Actual value was System.Object[]."
ParamName="leftField"
Source="Telerik.OpenAccess.Query"
i dont know if there is any thing am doing wrong, i would appreciate any advice i can get now
when the table involed in the join is just two it worked perfectlly but on trying to increase the number of table involved in the query to three as shown below
Dim
loclist = From person
In
scope.Extent(Of Person)() Join sex
In
scope.Extent(Of Sex)()
On
person.TblSex Equals sex.TblSexID _
Join salutaion
In
scope.Extent(Of Salutaion)()
On
person.TblSalutation Equals salutaion.TblSalutaionID _
Where person.TblEMPNo.Contains(Search) _
Select
New
With
{ _
.Name =
String
.Concat(salutaion.TblSalutation,
" "
,
String
.Concat(
String
.Concat(person.TblSurname,
" "
, person.TblMiddleName),
""
, person.TblOtherNames)), _
.ID = person.TblID, _
.Sex = sex.TblSex _
}
System.ArgumentOutOfRangeException was unhandled
Message="Left join key not an extent bound iterator Parameter name: leftField Actual value was System.Object[]."
ParamName="leftField"
Source="Telerik.OpenAccess.Query"
i dont know if there is any thing am doing wrong, i would appreciate any advice i can get now