I think it would be pretty slick to be able to build the following type of filtering methods straight from the LLBLGen UI.
Public Function GetByField(ByVal index As WorksheetsFieldIndex, ByVal value As Object) As WorksheetsCollection
Dim filter As IPredicateExpression = New PredicateExpression
filter.Add(PredicateFactory.CompareValue(index, ComparisonOperator.Equal, value))
Dim toReturn As WorksheetsCollection = New WorksheetsCollection
toReturn.GetMulti(filter)
Return toReturn
End Function
Or Like
Public Function GetWorksheetSummary(ByVal empID As Int32) As WorksheetsCollection
Dim filter As IPredicateExpression = New PredicateExpression
filter.Add(PredicateFactory.CompareValue(WorksheetsFieldIndex.EmployeeID, ComparisonOperator.Equal, empID))
filter.Add(PredicateFactory.CompareValue(WorksheetsFieldIndex.Completed, ComparisonOperator.Equal, 1))
Dim toReturn As WorksheetsCollection = New WorksheetsCollection
toReturn.GetMulti(filter)
Return toReturn
End Function