在阅读MCSD Certification Toolkit (Exam 70-483)书籍时,我发现了OData过滤器字符串函数bool substring(string p0, string p1)。
尝试在我的应用程序中使用它:
/Categories?$select=CategoryName&$filter=substring(CategoryName,'Seafood')并得到错误:
No function signature for the function with name 'substring' matches the specified arguments. The function signatures considered are:
substring(Edm.String Nullable=true, Edm.Int32);
substring(Edm.String Nullable=true, Edm.Int32 Nullable=true);
substring(Edm.String Nullable=true, Edm.Int32, Edm.Int32);
substring(Edm.String Nullable=true, Edm.Int32 Nullable=true, Edm.Int32);
substring(Edm.String Nullable=true, Edm.Int32, Edm.Int32 Nullable=true);
substring(Edm.String Nullable=true, Edm.Int32 Nullable=true, Edm.Int32 Nullable=true).看起来所需的子字符串函数已经消失了?它在哪里?
我发现类似的函数运行得很好:
/Categories?$select=CategoryName&$filter=substringof(CategoryName,'Seafood')发布于 2018-06-19 22:50:22
https://stackoverflow.com/questions/50928925
复制相似问题