OData $expand URL 限制?
OData $expand URL limit?
当您有很多(在本例中为 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.
OData 协议目前不支持同时扩展的属性不超过 13 个。
当您有很多(在本例中为 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.
OData 协议目前不支持同时扩展的属性不超过 13 个。