Community.OData.Linq 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Community.OData.Linq --version 1.0.0                
NuGet\Install-Package Community.OData.Linq -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Community.OData.Linq" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Community.OData.Linq --version 1.0.0                
#r "nuget: Community.OData.Linq, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Community.OData.Linq as a Cake Addin
#addin nuget:?package=Community.OData.Linq&version=1.0.0

// Install Community.OData.Linq as a Cake Tool
#tool nuget:?package=Community.OData.Linq&version=1.0.0                

Use text (OData format) expressons in LINQ methods for any IQuerable. No ASP.NET dependency

Sample

Please check simple code below to get started

    using System;
    using System.Linq;
    using Community.OData.Linq;

    public class Sample
    {        
        public int Id { get; set; }

        public string Name { get; set; }        
    }

    public class Demo
    {                
        public void SimpleFilter()
        {
            IQueryable<Sample> dataSet = this.CreateQuerable();
            Sample[] filterResult = dataSet.OData().Filter("Id eq 2 or Name eq 'name3'").ToArray();

            // Id:2 Name:name2
            // Id:3 Name:name3
            foreach (Sample sample in filterResult)
            {
                Console.WriteLine(string.Format("Id:{0} Name:{1}", sample.Id, sample.Name));
            }
        }

        public void SimpleOrderBy()
        {
            IQueryable<Sample> dataSet = this.CreateQuerable();
            Sample[] filterResult = dataSet.OData().OrderBy("Id desc").ToArray();

            // Id:3 Name:name3
            // Id:2 Name:name2
            // Id:1 Name:name1
            foreach (Sample sample in filterResult)
            {
                Console.WriteLine(string.Format("Id:{0} Name:{1}", sample.Id, sample.Name));
            }
        }

        private IQueryable<Sample> CreateQuerable()
        {
            return new[]
                       {
                           new Sample { Id = 1, Name = "name1" },
                           new Sample { Id = 2, Name = "name2" },
                           new Sample { Id = 3, Name = "name3" },
                       }.AsQueryable();
        }
    }
Product 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. 
.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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Community.OData.Linq:

Package Downloads
Aguacongas.IdentityServer

TheIdServer IndentityServer4 abstraction and extensions.

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

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Community.OData.Linq:

Repository Stars
Aguafrommars/TheIdServer
OpenID/Connect, OAuth2, WS-Federation and SAML 2.0 server based on Duende IdentityServer and ITFoxtec Identity SAML 2.0 with its admin UI
Version Downloads Last updated
2.1.24-rc 35,761 6/5/2022
2.1.0 810,966 1/3/2022
2.0.0 5,385 12/22/2021
1.4.3 129,747 5/26/2021
1.4.2 363,151 11/18/2018
1.4.1 15,276 8/23/2018
1.4.0 7,148 4/12/2018
1.3.0 989 4/10/2018
1.2.0 1,618 3/17/2018
1.1.0 1,235 2/28/2018
1.0.2 1,116 1/28/2018
1.0.1 1,156 1/28/2018
1.0.0 1,295 1/28/2018