当您有很多(本例中为20个)要展开的导航属性时,如何通过服务参考扩展实体的导航属性?我正在执行以下代码:
var result = MyEntities.Sample.Expand("Collector,Container,Coordinates...")
这导致以下URI:
http://192.168.0.196/Service.svc/Sample?$expand=Collector,Container,Coordinates,DispositionRequest,Employee,EstimatedSampleVolume,Facility,PreparationSize,Priority,Product,SourceLocation,SampleClassification,Unit,Vendor,Unit,WorkOrder,SampleType,Subject,Site,State
我得到的错误是:
$expand does not support '19' properties expanded simultaneously on the same segment.
答案 0 :(得分:0)