LinqJoins 1.0.0
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
See the version list below for details.
dotnet add package LinqJoins --version 1.0.0
NuGet\Install-Package LinqJoins -Version 1.0.0
<PackageReference Include="LinqJoins" Version="1.0.0" />
paket add LinqJoins --version 1.0.0
#r "nuget: LinqJoins, 1.0.0"
// 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 | Versions 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. 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. |
-
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.