Community.OData.Linq
1.1.0
See the version list below for details.
dotnet add package Community.OData.Linq --version 1.1.0
NuGet\Install-Package Community.OData.Linq -Version 1.1.0
<PackageReference Include="Community.OData.Linq" Version="1.1.0" />
paket add Community.OData.Linq --version 1.1.0
#r "nuget: Community.OData.Linq, 1.1.0"
// Install Community.OData.Linq as a Cake Addin #addin nuget:?package=Community.OData.Linq&version=1.1.0 // Install Community.OData.Linq as a Cake Tool #tool nuget:?package=Community.OData.Linq&version=1.1.0
Please check simple code below to get started:
.NET Fiddle
https://dotnetfiddle.net/7Ndwot
Code
using System;
using System.Linq;
using Community.OData.Linq;
public class Entity
{
public int Id { get; set; }
public string Name { get; set; }
}
public static class GetStartedDemo
{
public static void Demo()
{
Entity[] items =
{
new Entity { Id = 1, Name = "n1" },
new Entity { Id = 2, Name = "n2" },
new Entity { Id = 3, Name = "n3" }
};
IQueryable<Entity> query = items.AsQueryable();
var result = query.OData().Filter("Id eq 1 or Name eq 'n3'").OrderBy("Name desc").ToArray();
// Id: 3 Name: n3
// Id: 1 Name: n1
foreach (Entity entity in result)
{
Console.WriteLine("Id: {0} Name: {1}", entity.Id, entity.Name);
}
}
}
Advanced code samples at wiki
https://github.com/IharYakimush/comminity-data-odata-linq/wiki
Supported OData parameters
- $filter
- $orderby
- $select
- $expand
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.5
- Microsoft.OData.Core (>= 7.4.0)
- System.ComponentModel.Annotations (>= 4.4.1)
-
.NETStandard 2.0
- Microsoft.Extensions.DependencyInjection (>= 2.0.0)
- Microsoft.OData.Core (>= 7.4.0)
- System.ComponentModel.Annotations (>= 4.4.1)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on Community.OData.Linq:
Package | Downloads |
---|---|
Community.OData.Linq.AspNetCore
OData linq for ASP.NET Core 2.0+ |
|
Community.OData.Linq.Json
Json serialization for SelectExpand result |
|
CoreApp.Interfaces
Package Description |
|
Nanomite.Core.DataAccess
Package Description |
|
Microsoft.SemanticKernel.Plugins.StructuredData.EntityFramework
Semantic Kernel Entity Framework 6.5 plugin for structured data access and manipulation using Entity Framework. Enables AI interactions with relational databases through Entity Framework contexts. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.1.24-rc | 49,427 | 6/5/2022 |
2.1.0 | 1,012,643 | 1/3/2022 |
2.0.0 | 5,615 | 12/22/2021 |
1.4.3 | 137,418 | 5/26/2021 |
1.4.2 | 369,406 | 11/18/2018 |
1.4.1 | 15,966 | 8/23/2018 |
1.4.0 | 7,351 | 4/12/2018 |
1.3.0 | 1,101 | 4/10/2018 |
1.2.0 | 1,731 | 3/17/2018 |
1.1.0 | 1,346 | 2/28/2018 |
1.0.2 | 1,272 | 1/28/2018 |
1.0.1 | 1,344 | 1/28/2018 |
1.0.0 | 1,491 | 1/28/2018 |
Added support for $select and $expand parameters