Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Implementation of the Filtering API of Microsoft Guidelines REST API using@SuperPower library.

License

NotificationsYou must be signed in to change notification settings

RayTale/Guidelines.RestApi.Collections.Filtering

 
 

Repository files navigation

Implementation of the Filtering API ofMicrosoft Guidelines REST API usingSuperpower.

Supported comparison operators

  • Equal
varexpression="Id eq 1";
  • NotEqual
varexpression="Id ne 1";
  • GraterThan
varexpression="Id gt 1";
  • GraterThanOrEqual
varexpression="Id ge 1";
  • LessThan
varexpression="Id lt 1";
  • LessThanOrEqual
varexpression="Id le 1";
  • In
varexpression="Id in (1,2,3)";

Supported string functions

  • Length
varexpression="length(Title) gt 1";
  • StartsWith
varexpression="startswith(Title, 'Some')";
  • EndsWith
varexpression="endswith(Title, 'Title')";
  • Contains
varexpression="contains(Title, 'Title')";
  • IndexOf
varexpression="indexof(Title, 'Title') eq 0";

Supported logical operators

  • And
varexpression="Id eq 1 and Value ne 5.0";
  • Or
varexpression="Id eq 1 or Value ne 5.0";
  • Not
varexpression="not Id eq 1";

Usage

varexpression="(length(Title) gt 5 and contains(Title, 'tle')) or Id in (3,5)";// Parse a filtering functionExpression<Func<Item,bool>>predicateExpression=FilterParser.Parse<Item>(expression);// Compile a filtering functionFunc<Item,bool>predicate=FilterCompiler.Compile<Item>(expression);

About

Implementation of the Filtering API of Microsoft Guidelines REST API using@SuperPower library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C#100.0%

[8]ページ先頭

©2009-2025 Movatter.jp