Adapter v2.6.
Several questions here:
I am binding to an Entity Collection
Private _ecREO As New EntityCollection(Of RealEstateOwnedEntity)(New RealEstateOwnedEntityFactory())
The RealEstateOwned table in the DB has 5 child 1:m table relationships.
Using a BinndingSource against the parent table, the ultragrid picks up all of the related entities as bands (so I have 5 bands - everything is good so far).
Now I go and load this entity collection:
Dim sorter = New SortExpression(New SortClause(RealEstateOwnedFields.BorrowerId, Nothing, SortOperator.Ascending))
Dim filter As IPredicate = (RealEstateOwnedFields.BorrowerId = _Nav.BorrowerId)
Dim bucket As IRelationPredicateBucket = New RelationPredicateBucket()
bucket.PredicateExpression.Add(filter)
_Adapter.FetchEntityCollection(_ecREO, bucket, 0, sorter)
Me.BSREO.DataSource = _ecREO
=====================================
I don't see how to reference the related entities in _ecREO. They appear in the grid.
I came across "getMulti" in some Help but I can't find it anything like it when I inspect either the "_ecREO" object or the individual entities.
I want to make sure I am properly deleting entities based on the Grid delete event.
Thanks