Thanks for your hint. I added the relations. But I am trying to get the values from all these tables. Here is my code. How can I get the column values from TableA, TableB and TableC? This code only works for TableA. I couldn't get the column values from TableB and TableC.
EntityCollection TableACollection = new EntityCollection(new TableAEntityFactory());
RelationPredicateBucket bucket = new RelationPredicateBucket();
bucket.Relations.Add(TableAEntity.Relations.TableBEntityUsingAid);
bucket.Relations.Add(TableAEntity.Relations.TableCEntityUsingCId);
using (DataAccessAdapter adapter = new DataAccessAdapter())
{
adapter.FetchEntityCollection(TableACollection, bucket);
foreach(TableAEntity tableAItem in TableACollection)
{
model.StartDate =tableAItem.StartDt.ToString();
}
}