I can do this with IPrefetchPath2(Adapter):
EntityCollection eColl = new EntityCollection(new DispEntityFactory());
IPrefetchPath2 prefetchPath = new PrefetchPath2((int)EntityType.DispEntity);
prefetchPath.Add(DispEntity.PrefetchPathDispprint);
IRelationPredicateBucket filter = new RelationPredicateBucket();
filter.PredicateExpression.Add(PredicateFactory.CompareValue(DispFieldIndex.Nrdispo, ComparisonOperator.LessEqual, textBox1.Text));
DataAccessAdapter adapter = new DataAccessAdapter();
adapter.FetchEntityCollection(eColl , filter, prefetchPath);
dataGridView1.DataSource = eColl ;
The Problem at this way is, that only the data of the DispEntity is loaded to the grid.
But what about the related data of the Dispoprint entity.
In the documentation ist described that there should be a + where I can open the
related entities.
Why couldn´t see I an "+" in the datagrid ( begin of the row) ?
Slowhand