Arebis.Core.EntityFramework
8.2.0
dotnet add package Arebis.Core.EntityFramework --version 8.2.0
NuGet\Install-Package Arebis.Core.EntityFramework -Version 8.2.0
<PackageReference Include="Arebis.Core.EntityFramework" Version="8.2.0" />
<PackageVersion Include="Arebis.Core.EntityFramework" Version="8.2.0" />
<PackageReference Include="Arebis.Core.EntityFramework" />
paket add Arebis.Core.EntityFramework --version 8.2.0
#r "nuget: Arebis.Core.EntityFramework, 8.2.0"
#:package Arebis.Core.EntityFramework@8.2.0
#addin nuget:?package=Arebis.Core.EntityFramework&version=8.2.0
#tool nuget:?package=Arebis.Core.EntityFramework&version=8.2.0
Arebis.Core.EntityFramework
.NET Core extensions for working with Entity Framework.
Extensions
dbContext.AreProxiesEnabled() - Check if proxies are enabled for the given DbContext.
dbSet.GetDbContext() - Get the DbContext for a given DbSet.
dbSet.AddNew() - Create a new entity (or proxy), add it to the DbSet and return it.
dbSet.FindOrFail() - Find an entity by primary key(s) or throw an exception if not found.
dbSet.FindOrFailAsync() - Find an entity by primary key(s) or throw an exception if not found.
entity.MarkModified() - Mark an entity as modified in the DbContext. entity must be an IContextualEntity<TDbContext>.
queryable.OrderBy() - Order a queryable by a property name or path.
orderedQueryable.ThenBy() - ThenBy a queryable by a property name or path. I.e:
invoices.OrderBy("Customer.Name ASC");
.ThenBy("Date DESC");
BaseDbContext<T>
A base class for DbContext offering extra services:
- Broader support for Data Annotations (setting default schema, mapped fields, type discriminator, converters)
- Support for Context aware entitites
- Support for intercepting entities
- Support for validation
- Support for after save actions
Includes default Converters (and Comparers) for:
- Dictionaries
- Lists
- DateOnly
- TimeOnly
- TimeSpan in Days
- TimeSpan in Hours
- TimeSpan as Ticks
- UtcDateTime
- Regex
As well as a generic JsonConverter.
(All these converters require the use of BaseDbContext<T>)
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. net10.0 was computed. 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. |
-
net8.0
- Arebis.Core (>= 8.0.7)
- Microsoft.EntityFrameworkCore (>= 8.0.21)
- Microsoft.EntityFrameworkCore.Proxies (>= 8.0.21)
- Microsoft.EntityFrameworkCore.Relational (>= 8.0.21)
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 |
|---|---|---|
| 8.2.0 | 88 | 2/13/2026 |
| 8.1.11 | 129 | 2/4/2026 |
| 8.1.10 | 280 | 11/27/2025 |
| 8.1.9 | 210 | 11/27/2025 |
| 8.1.8 | 236 | 10/30/2025 |
| 8.1.7 | 274 | 10/28/2025 |
| 8.1.6 | 329 | 9/8/2025 |
| 8.1.5 | 193 | 8/1/2025 |
| 8.1.4 | 112 | 8/1/2025 |
| 8.1.3 | 582 | 7/21/2025 |
| 8.1.2 | 662 | 11/4/2024 |
| 8.1.1 | 261 | 8/3/2024 |
| 8.1.0 | 238 | 4/17/2024 |
| 8.0.7 | 239 | 3/29/2024 |
| 8.0.6 | 198 | 3/22/2024 |
| 8.0.5 | 185 | 3/22/2024 |
| 8.0.4 | 239 | 2/13/2024 |
| 8.0.3 | 180 | 2/12/2024 |
| 8.0.2 | 186 | 2/12/2024 |
| 8.0.1 | 202 | 2/9/2024 |