OData Select Syntax for Field SubString

流过昼夜 提交于 2019-12-11 16:03:49

问题


Im pulling data across the line for a listing. Is there a way in OData syntax to only pull the first 100 characters of a field. e.g. EmployeeDescription field, I only want to show the first 100 characters of a Nvarchar(1000) database field.

Am trying to cut down as much as possible data going across the line.

Thanks


回答1:


Currently there's no support for such query. The projections feature ($select) only allows you to select which properties to get, but you will get the entire property value always.



来源:https://stackoverflow.com/questions/4209830/odata-select-syntax-for-field-substring

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!