I have two Entities like this:
Note
RegardsPersonId
Description
DateTime
Person
PersonId
Name
Telephone
In the Entity editor on the Fields mapped on related entity page I added a PersonName field to the Note entity using the Relation Note.RegardsPersonId = Person.PersonId. Now I want to create a predicate expression like:
Protected Sub LLBLGenProDataSource1_PerformSelect(ByVal sender As Object, ByVal e As SD.LLBLGen.Pro.ORMSupportClasses.PerformSelectEventArgs) Handles LLBLGenProDataSource1.PerformSelect
Dim notes As NoteCollection = CType(e.ContainedCollection, NoteCollection)
Dim filter As PredicateExpression = e.Filter
filter.Add(New FieldLikePredicate(HelperClasses.NoteFields.PersonName = something & "%"))
notes.GetMulti(filter)
But i get an error that PersonName is not a member of NoteFields. But if I instantiate a Note it has a Note.PersonName field.. so what gives?
Any help is greatly appreciated. Thanks
-Kas