我正在尝试检索现有实体的 RelatedEntities 集合,但每次它都返回空值。不知道我在这里缺少什么。非常感谢检索相关实体的任何帮助或任何其他解决方法。这是我的代码片段:
Entity existingAppointment = _service.Retrieve("appointment", id, new ColumnSet(true));
Console.WriteLine(existingAppointment.RelatedEntities.Count);
我正在尝试检索现有实体的 RelatedEntities 集合,但每次它都返回空值。不知道我在这里缺少什么。非常感谢检索相关实体的任何帮助或任何其他解决方法。这是我的代码片段:
Entity existingAppointment = _service.Retrieve("appointment", id, new ColumnSet(true));
Console.WriteLine(existingAppointment.RelatedEntities.Count);