EntityFrameworkCore.MemoryJoin 0.8.0

.NET 6.0 .NET Standard 2.1 .NET Framework 4.5
Install-Package EntityFrameworkCore.MemoryJoin -Version 0.8.0
dotnet add package EntityFrameworkCore.MemoryJoin --version 0.8.0
<PackageReference Include="EntityFrameworkCore.MemoryJoin" Version="0.8.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EntityFrameworkCore.MemoryJoin --version 0.8.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EntityFrameworkCore.MemoryJoin, 0.8.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install EntityFrameworkCore.MemoryJoin as a Cake Addin
#addin nuget:?package=EntityFrameworkCore.MemoryJoin&version=0.8.0

// Install EntityFrameworkCore.MemoryJoin as a Cake Tool
#tool nuget:?package=EntityFrameworkCore.MemoryJoin&version=0.8.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.


Extension for EntityFramework for joins to in-memory data. Both Entity Framework 6 and Entity Framework Core are supported! Used SQL standard syntax.

Tested with: MSSQL, PostgreSQL, and SQLite. (others should also work as standard EF API and SQL standard syntax are used)


  1. Internally MemoryJoin uses intermediate class for making queries. So you can either use your own or basically use built-in one. Like this:

    protected DbSet<EntityFramework.MemoryJoin.QueryModelClass> QueryData { get; set; }

    Or like this for EF Core

    protected DbSet<EntityFrameworkCore.MemoryJoin.QueryModelClass> QueryData { get; set; }

Please note this DbSet is protected, so it can't be used by anybody, only MemoryJoin will access it. Another note: table for QueryModelClass is NOT required. It is used for internal mapping only. So if you use migrations - basically use -IgnoreChanges flag.

  1. After DbSet is defined you can write as follows:

    using EntityFramework.MemoryJoin

    For EF Core:

    using EntityFrameworkCore.MemoryJoin


// get context
var context = CreateContext();

// define in-memory list
var queryData = new [] {
    new { .StreetName = "Foo", .HouseNumber = 33 },
    new { .StreetName = "Baz", .HouseNumber = 99 },
    // can specify other objects here

// get queryable representation, using thing like AsQueryable() will not work
var queryable = context.FromLocalList(queryData);

// Write as complex query as you want now. Data will be sent to server for performing query. I.e.
var efQuery = from addr in context.Addresses
              join el in queryList on
                       new { addr.StreetName, addr.HouseNumber } equals
                       new { el.StreetName, el.HouseNumber }
              select new
   // Query will be executed on DB server
   var = efQuery.ToList();
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.1
.NET Framework net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

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
0.8.0 34,026 12/11/2021
0.7.6 32,548 4/2/2021
0.7.5 14,135 11/24/2020
0.7.0 29,330 4/18/2020
0.6.0 7,731 9/29/2019
0.5.7 3,530 8/15/2019
0.5.6 20,186 3/22/2019
0.5.5 451 3/18/2019
0.5.4 3,751 12/18/2018
0.5.3 25,644 4/6/2018
0.5.2 748 3/23/2018
0.5.1 741 3/22/2018
0.5.0 1,441 3/20/2018

.Net 6 supported