LinqJoins 1.0.0

Additional Details

This library can help you to do easy Left Join/Right Join/FullJoin/NotMatchedJoin. Please see example on following link.
https://www.nuget.org/packages/LinqJoins#readme-body-tab

There is a newer version of this package available.
See the version list below for details.
dotnet add package LinqJoins --version 1.0.0
NuGet\Install-Package LinqJoins -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="LinqJoins" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add LinqJoins --version 1.0.0
#r "nuget: LinqJoins, 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 LinqJoins as a Cake Addin
#addin nuget:?package=LinqJoins&version=1.0.0

// Install LinqJoins as a Cake Tool
#tool nuget:?package=LinqJoins&version=1.0.0

This library can help you to do easy Left Join/Right Join/FullJoin/NotMatchedJoin. following is an example.

using LinqJoins;

List<Data> lstData = new(){ new Data{ Id = 1, Name="Abhay"} , new Data{ Id = 2,Name="Amy"} };

List<Data> lstData2 = new(){ new Data{ Id = 1, Name="Abhay"} , new Data{ Id = 3,Name="Aavya"} , new Data{ Id = 4,Name="Amruta"} , };

Console.WriteLine("Right Join"); var output=lstData.RightJoin(lstData2,x=>x.Id,y=>y.Id,(x,y)=>new {RightId=x?.Id,RightName=x?.Name,LeftName=y?.Name,LeftId=y?.Id}); foreach (var item in output) { Console.WriteLine($"{item.RightId} - {item.RightName} - {item.LeftId} - {item.LeftName}"); }

Console.WriteLine("Left Join"); var output2 = lstData.LeftJoin(lstData2, x ⇒ x.Id, y ⇒ y.Id, (x, y) ⇒ new { RightId = x?.Id, RightName = x?.Name, LeftName = y?.Name, LeftId = y?.Id }); foreach (var item in output2) { Console.WriteLine($"{item.RightId} - {item.RightName} - {item.LeftId} - {item.LeftName}"); }

Console.WriteLine("Full Join"); var output3 = lstData.FullJoin(lstData2, x ⇒ x.Id, y ⇒ y.Id, (x, y) ⇒ new { RightId = x?.Id, RightName = x?.Name, LeftName = y?.Name, LeftId = y?.Id }); foreach (var item in output3) { Console.WriteLine($"{item.RightId} - {item.RightName} - {item.LeftId} - {item.LeftName}"); }

Console.WriteLine("Not Matched Join"); var output4 = lstData.NotMatchJoin(lstData2, x ⇒ x.Id, y ⇒ y.Id, (x, y) ⇒ new { RightId = x?.Id, RightName = x?.Name, LeftName = y?.Name, LeftId = y?.Id }); foreach (var item in output4) { Console.WriteLine($"{item.RightId} - {item.RightName} - {item.LeftId} - {item.LeftName}"); } Console.WriteLine("Hello, World!");

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

public string Name { get; set; }

}

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 221 10/26/2023
1.0.0 142 10/25/2023