I have written the code to fetch fields of vice entity.
Entity1 - vice
Entity2 - ment
Entity3 - Model
Now Entity 2 has a lookup Model which is an entity. I need Model "name".
Can any 1 please help how to retrieve related entity Entity 3 (Model) from Entity 2(ment)
QueryExpression qureyObj = new QueryExpression("vice");
qureyObj.NoLock = true;
qureyObj.Distinct = true;
qureyObj.ColumnSet = new ColumnSet(true);
qureyObj.Criteria.AddCondition(new ConditionExpression("companyid", ConditionOperator.Equal, "{441P363D-0DB4-E711-80E2-001DD8B721AB}"));
LinkEntity viceEquipment = new LinkEntity(" vice", "ment", " mentid", " mentid", JoinOperator.LeftOuter);
viceEquipment.EntityAlias = "DE";
viceEquipment.Columns = new ColumnSet(true);
qureyObj.LinkEntities.Add(deviceEquipment);
*This post is locked for comments
I have the same question (0)