EzOdata.EntityFrameworkCore.AspNetCore 2.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package EzOdata.EntityFrameworkCore.AspNetCore --version 2.0.0
                    
NuGet\Install-Package EzOdata.EntityFrameworkCore.AspNetCore -Version 2.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="EzOdata.EntityFrameworkCore.AspNetCore" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EzOdata.EntityFrameworkCore.AspNetCore" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="EzOdata.EntityFrameworkCore.AspNetCore" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add EzOdata.EntityFrameworkCore.AspNetCore --version 2.0.0
                    
#r "nuget: EzOdata.EntityFrameworkCore.AspNetCore, 2.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.
#:package EzOdata.EntityFrameworkCore.AspNetCore@2.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=EzOdata.EntityFrameworkCore.AspNetCore&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=EzOdata.EntityFrameworkCore.AspNetCore&version=2.0.0
                    
Install as a Cake Tool

EzOdata + SimpleCRUD / EF Core

Packages that take over ez-odata-api tables with Dapper.SimpleCRUD or EF Core, both used unmodified.

EzOdata.SimpleCrud: several SimpleCRUD dialects in one process

SimpleCRUD keeps its dialect in static state, so one process normally speaks one dialect. This package gives each dialect its own isolated SimpleCRUD engine, created on first use. SQL Server, PostgreSQL, MySQL and SQLite can then run side by side, next to your existing SimpleCRUD code, which it never touches.

var pg  = SimpleCrud.For(SimpleCRUD.Dialect.PostgreSQL).WithConnection(() => new NpgsqlConnection(pgCs)).Build();
var sql = SimpleCrud.For(SimpleCRUD.Dialect.SQLServer).WithConnection(() => new SqlConnection(sqlCs)).Build();

await pg.InsertAsync(customer);
var order = await sql.GetAsync<Order>(42);

// or with keyed DI
services.AddSimpleCrud("warehouse", SimpleCRUD.Dialect.SQLServer, _ => new SqlConnection(sqlCs));

Your existing SimpleCRUD POCOs and attributes work unchanged. The overhead is about 1.06× a direct SimpleCRUD call. Supports SimpleCRUD 2.3.x and 2.4.x on .NET 8+; on netstandard2.0 it falls back to one dialect per process.

Instant OData/REST API with a SimpleCRUD or EF Core write engine

ez-odata-api serves every table of a database as a governed OData v4 / REST API. EzOdata.Entities.AspNetCore lets you take over any table with an entity and typed hooks. Pick the write engine per service:

builder.Services.AddEzOData(ez => ez.AddService("crm", s => s.UsePostgreSql(connection)));
builder.Services.ExtendEzOData(x => x.Service("crm", crm => crm
    .UseSimpleCrud()                       // or .UseEfCore<CrmDbContext>()
    .Table<Customer, CustomerHandler>()
    .Table<Order>(t => t.BeforeInsert((o, ctx) => { if (o.Total <= 0) ctx.Reject("Total must be positive."); }))));
app.MapEzOData("/api/odata");
  • Writes go through the chosen engine in one transaction; hooks share it via ctx.Data.
  • ez-odata's role rules and row filters still apply, and hooks can't widen them.
  • Composite keys are supported, and UsePropertyNames() exposes C# property names in the API.
  • ctx.OnCommitted(...) runs side effects only after a successful commit.

Docs, tests and samples: https://github.com/YOLOVibeCode/ez-odata-api.Dapper.SimpleCRUD · Apache-2.0

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
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
2.0.1 41 9/30/2026
2.0.0 35 9/30/2026