字段子字符串的 OData 选择语法 [英] OData Select Syntax for Field SubString

查看:63
本文介绍了字段子字符串的 OData 选择语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为列表提取数据.OData 语法中有没有办法只提取字段的前 100 个字符.例如EmployeeDescription 字段,我只想显示 Nvarchar(1000) 数据库字段的前 100 个字符.

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.

谢谢

推荐答案

目前不支持此类查询.投影功能 ($select) 只允许您选择要获取的属性,但您将始终获取整个属性值.

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.

这篇关于字段子字符串的 OData 选择语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆