更新时间:2023-11-20 15:11:52
做两个请求.这允许每个表示具有不同的缓存规则.缓存国家/地区列表可能是个好主意.
Do two requests. This allows each representation to have difference caching rules. Caching the country list is probably a good idea.
当我这样做时,我的 XML 表示如下:
When I do this, my XML representation looks like:
<User>
<Name>Bob Brown</Name>
<Country DomainUrl="/Setup/Country/PickList">
<Code>US</Code>
<Description>United States</Description>
</Country>
</User>
我还推迟加载国家/地区列表,直到用户实际单击下拉列表.
I also defer the loading of the Country list until the user actually clicks on the drop down.