Info
Version: | 2.0.2 |
Author(s): | Ziyou Zheng |
Last Update: | Tuesday, November 1, 2016 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/z26zheng/azure-documentdb-odata-sql |
NuGet Url: | https://www.nuget.org/packages/Microsoft.Azure.Documents.OData.Sql |
Install
Install-Package Microsoft.Azure.Documents.OData.Sql
dotnet add package Microsoft.Azure.Documents.OData.Sql
paket add Microsoft.Azure.Documents.OData.Sql
Microsoft.Azure.Documents.OData.Sql Download (Unzip the "nupkg" after downloading)
Dependencies
- Microsoft.AspNet.OData(>= 5.9.0 && < 6.0.0)
- Microsoft.Azure.DocumentDB(>= 1.9.5)
- Microsoft.Data.OData(>= 5.6.0)
Tags
primitive:
field => c.field
parent/child => c.parent.child
Namespace.EnumType'enumVal' => 'enumVal'
queries:
$select => SELECT
$filter => WHERE
$top => TOP
$orderby => ORDER BY
functions:
contains(field,'value') => CONTAINS(c.field,'value')
startswith(field,'value') => STARTSWITH(c.field,'value')
endswith(field,'value') => ENDSWITH(c.field,'value')
toupper(field) => UPPER(c.field)
tolower(field) => LOWER(c.field)
length(field) => LENGTH(c.field)
indexof(field,'value') => INDEX_OF(c.field,'value')
substring(field,idx1,idx2) => SUBSTRING(c.field,idx1,idx2)
trim(field) => LTRIM(RTRIM(c.englishName))
concat(field,'value') => CONCAT(c.englishName,'value').