VOOZH about

URL: https://www.nuget.org/packages/Enigmatry.Entry.EntityFramework/

⇱ NuGet Gallery | Enigmatry.Entry.EntityFramework 10.2.3




👁 Image
Enigmatry.Entry.EntityFramework 10.2.3

dotnet add package Enigmatry.Entry.EntityFramework --version 10.2.3
 
 
NuGet\Install-Package Enigmatry.Entry.EntityFramework -Version 10.2.3
 
 
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="Enigmatry.Entry.EntityFramework" Version="10.2.3" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Enigmatry.Entry.EntityFramework" Version="10.2.3" />
 
Directory.Packages.props
<PackageReference Include="Enigmatry.Entry.EntityFramework" />
 
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 Enigmatry.Entry.EntityFramework --version 10.2.3
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Enigmatry.Entry.EntityFramework, 10.2.3"
 
 
#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 Enigmatry.Entry.EntityFramework@10.2.3
 
 
#: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=Enigmatry.Entry.EntityFramework&version=10.2.3
 
Install as a Cake Addin
#tool nuget:?package=Enigmatry.Entry.EntityFramework&version=10.2.3
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Entity Framework Core Extensions

A library that provides extensions and utilities for working with Entity Framework Core, enhancing the ORM capabilities with additional features and patterns.

Intended Usage

Use this library to implement common Entity Framework Core patterns and extensions, such as repositories, unit of work, auditing, and soft delete functionality.

Installation

Add the package to your project:

dotnet add package Enigmatry.Entry.EntityFramework

Usage Example

Creating a repository:

using Enigmatry.Entry.Core.Entities;
using Enigmatry.Entry.EntityFramework;
using Microsoft.EntityFrameworkCore;

// Define an entity
public class Customer : EntityWithTypedId<Guid>
{
 public string Name { get; set; } = string.Empty;
 public string Email { get; set; } = string.Empty;
 public bool IsActive { get; set; }
}

// Create a DbContext
public class ApplicationDbContext : BaseDbContext
{
 public DbSet<Customer> Customers { get; set; } = default!;
 
 public ApplicationDbContext(DbContextOptions options, EntitiesDbContextOptions entitiesDbContextOptions)
 : base(entitiesDbContextOptions, options)
 {
 }
 
 protected override void OnModelCreating(ModelBuilder modelBuilder)
 {
 base.OnModelCreating(modelBuilder);
 
 // Model builder is configured through base class
 }
}

// Use the repository pattern
public interface ICustomerRepository : IRepository<Customer, Guid>
{
 Task<Customer?> FindByEmailAsync(string email);
}

public class CustomerRepository : EntityFrameworkRepository<Customer, Guid>, ICustomerRepository
{
 public CustomerRepository(ApplicationDbContext dbContext)
 : base(dbContext)
 {
 }
 
 public async Task<Customer?> FindByEmailAsync(string email)
 {
 return await DbSet
 .FirstOrDefaultAsync(c => c.Email == email && c.IsActive);
 }
}

Dependency Injection Example

Register Entity Framework services:

using Enigmatry.Entry.Core.Data;
using Enigmatry.Entry.EntityFramework;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;

public class Startup
{
 public void ConfigureServices(IServiceCollection services)
 {
 // Configure EntitiesDbContextOptions
 var entitiesOptions = new EntitiesDbContextOptions
 {
 ConfigurationAssembly = typeof(Customer).Assembly
 };
 services.AddSingleton(entitiesOptions);
 
 // Register DbContext
 services.AddDbContext<ApplicationDbContext>(options =>
 options.UseSqlServer(Configuration.GetConnectionString("DefaultConnection")));
 
 // Register repositories
 services.AddScoped<ICustomerRepository, CustomerRepository>();
 
 // Add unit of work
 services.AddScoped<IUnitOfWork, EntityFrameworkUnitOfWork>();
 
 // Register DbContext as the concrete DbContext implementation for the unit of work
 services.AddScoped<DbContext>(sp => sp.GetRequiredService<ApplicationDbContext>());
 }
}
Product Versions Compatible and additional computed target framework versions.
.NET net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows 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
10.2.3 130 6/1/2026
10.2.3-preview.4 55 6/1/2026
10.2.2 361 4/27/2026
10.2.1-preview.1 58 4/27/2026
10.1.0 278 4/16/2026
10.0.1 191 5/19/2026
10.0.1-preview.2 58 4/16/2026
10.0.0 128 4/2/2026
9.6.0 514 3/18/2026
9.5.0 956 1/26/2026
9.4.0 1,805 12/22/2025
9.3.1-preview.3 271 12/18/2025
9.3.1-preview.1 514 11/25/2025
9.3.0 1,204 11/10/2025
9.2.0 1,553 9/24/2025
9.1.1-preview.5 231 8/8/2025
9.1.1-preview.4 150 6/27/2025
8.3.1-preview.1 153 12/24/2025
8.3.0 1,841 12/23/2025
8.2.0 658 9/24/2025
Loading failed