Broken relation code upon upgrade from 2.0 to 2.6

Posts   
 
    
bclark00
User
Posts: 5
Joined: 30-May-2008
# Posted on: 12-Jun-2008 19:29:12   
    Dim Employees As EmployeeCollection = New EmployeeCollection()
    Dim relations As IRelationCollection = New RelationCollection()
    Dim Sorter As ISortExpression = New SortExpression()

    Dim Filter As IPredicateExpression = New PredicateExpression

    relations.Add(EmployeeEntity.Relations.EmployeeDetailEntityUsingEmployeeId)

    If STATOrder.Client.BranchCode.ToString <> "" Then
        If Not ShowAllCheckBox.Checked Then
            Filter.Add(HelperClasses.EmployeeDetailFields.BranchCode = STATOrder.Client.BranchCode)
        End If
        Filter.Add(HelperClasses.EmployeeDetailFields.JobType = "Phlebotomist")
    End If

    PhlebList.GetMulti(Filter, 0, Sorter, relations)

This now returns 0 records.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 12-Jun-2008 19:30:30   
  • PLEASE provide more info, e.g. what query is generated (enable DQE tracing, see Troubleshooting and debugging in the manual)
  • is inheritance used?
Frans Bouma | Lead developer LLBLGen Pro