GridGain.EntityFrameworkCore.Ignite
9.1.28
Prefix Reserved
See the version list below for details.
dotnet add package GridGain.EntityFrameworkCore.Ignite --version 9.1.28
NuGet\Install-Package GridGain.EntityFrameworkCore.Ignite -Version 9.1.28
<PackageReference Include="GridGain.EntityFrameworkCore.Ignite" Version="9.1.28" />
<PackageVersion Include="GridGain.EntityFrameworkCore.Ignite" Version="9.1.28" />
<PackageReference Include="GridGain.EntityFrameworkCore.Ignite" />
paket add GridGain.EntityFrameworkCore.Ignite --version 9.1.28
#r "nuget: GridGain.EntityFrameworkCore.Ignite, 9.1.28"
#:package GridGain.EntityFrameworkCore.Ignite@9.1.28
#addin nuget:?package=GridGain.EntityFrameworkCore.Ignite&version=9.1.28
#tool nuget:?package=GridGain.EntityFrameworkCore.Ignite&version=9.1.28
GridGain Ignite EF Core Provider
An Entity Framework Core provider for GridGain 9.x, enabling DbContext-based querying, change tracking, and migrations against an Ignite cluster.
Status: Experimental
Getting Started
Register the provider in DbContextOptionsBuilder with UseIgnite:
using Apache.Ignite.EntityFrameworkCore.Extensions;
using Microsoft.EntityFrameworkCore;
public class PersonContext : DbContext
{
public DbSet<Person> People => Set<Person>();
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) =>
optionsBuilder.UseIgnite("Endpoints=localhost:10800");
}
public class Person
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
}
await using var ctx = new PersonContext();
ctx.People.Add(new Person { Id = 1, Name = "John" });
await ctx.SaveChangesAsync();
List<Person> people = await ctx.People
.Where(p => p.Name.StartsWith("J"))
.OrderBy(p => p.Name)
.ToListAsync();
UseIgnite also accepts an existing DbConnection (IgniteDbConnection) instead of a connection string, so a singleton connection can be used.
Dependency Injection
In an app using IServiceCollection (e.g. ASP.NET Core), register the context with AddIgnite instead of overriding OnConfiguring:
services.AddIgnite<PersonContext>("Endpoints=localhost:10800");
Migrations
Standard dotnet ef migrations / Database.Migrate() workflows are supported for schema changes (CREATE/ALTER/DROP TABLE, indexes, etc.).
Limitations
- Transactions are not supported for migrations or any other DDL operation.
- Tables without a
PRIMARY KEYare not supported. - Reverse engineering (
dotnet ef dbcontext scaffold) is not implemented yet.
Documentation
Full GridGain documentation is available at gridgain.com/docs.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- GridGain.Ignite (>= 9.1.28)
- Microsoft.EntityFrameworkCore (>= 10.0.11)
- Microsoft.EntityFrameworkCore.Abstractions (>= 10.0.11)
- Microsoft.EntityFrameworkCore.Design (>= 10.0.11)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.11)
- Microsoft.Extensions.DependencyModel (>= 10.0.11)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.