PGMS.DataProvider.EFCore 5.0.0.5

dotnet add package PGMS.DataProvider.EFCore --version 5.0.0.5
                    
NuGet\Install-Package PGMS.DataProvider.EFCore -Version 5.0.0.5
                    
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="PGMS.DataProvider.EFCore" Version="5.0.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PGMS.DataProvider.EFCore" Version="5.0.0.5" />
                    
Directory.Packages.props
<PackageReference Include="PGMS.DataProvider.EFCore" />
                    
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 PGMS.DataProvider.EFCore --version 5.0.0.5
                    
#r "nuget: PGMS.DataProvider.EFCore, 5.0.0.5"
                    
#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 PGMS.DataProvider.EFCore@5.0.0.5
                    
#: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=PGMS.DataProvider.EFCore&version=5.0.0.5
                    
Install as a Cake Addin
#tool nuget:?package=PGMS.DataProvider.EFCore&version=5.0.0.5
                    
Install as a Cake Tool

Introduction

PGMS.CQSLight is a small, open-source library that provides a simple and easy-to-use interface for implementing the Command Query Separation (CQS) pattern in .NET Core applications. The library is designed to be lightweight, flexible, and easy to test.

The CQS pattern is a software design pattern that separates the responsibility of executing a command from the responsibility of querying data. The pattern is based on the idea that a method or function should either change the state of the system or retrieve data, but not both.

In PGMS.CQSLight, commands and queries are separated into different interfaces, and each command and query is handled by a specific handler. The library also provides a simple interface for dispatching commands and handling queries.

PGMS.CQSLight is built with SOLID principles, which makes the code maintainable, scalable, and testable. It's an easy to use library, and it's a good fit for small and medium-sized projects that need to implement the CQS pattern.


PGMS.DataProvider.EFCore

Entity Framework Core implementation of the repository pattern

This package provides a complete implementation of the PGMS.Data abstractions using Entity Framework Core, enabling you to work with SQL Server databases.

Key Features

  • EF Core Repository: BaseEntityRepository<TDbContext> implementation with full CRUD operations
  • Unit of Work: UnitOfWork<T> implementation with transaction support
  • Context Factory: ContextFactory<T> for creating DbContext instances with connection string management
  • Data Service: DataService<TDbContext> with HiLo ID generation using database sequences
  • Lazy Loading: Support for lazy loading with LazyLoadAttribute on entities and properties
  • Raw SQL: Execute raw SQL queries and commands with parameter support
  • Bulk Operations: Bulk insert support for better performance
  • Query Builder: LINQ-based query building with filtering, ordering, and pagination

Installation Helper

Use DataProviderLayerInstaller.RegisterContext<TDbContext>() to register all services with Autofac dependency injection.

This library provides a robust, production-ready implementation of the repository pattern over EF Core, handling connection management, transactions, and optimized queries.


Getting Started

Have a look at our sample app based on PGMS.CQSLight: GitHub Repository

Version 5.X ⇒ DotNet 10.0
Version 4.X ⇒ DotNet 8.0
Version 3.X ⇒ DotNet 6.0
Version 2.X ⇒ DotNet 5.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 (1)

Showing the top 1 NuGet packages that depend on PGMS.DataProvider.EFCore:

Package Downloads
PGMS.CQSLight.UnitTestUtilities

Unitests utilities for PGMS.CQSLight - Fake impementations of Transaction, UnitOfWork - In Memory EntityRepository

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.0.0.5 276 3/21/2026
5.0.0.4 107 3/21/2026 5.0.0.4 is deprecated because it has critical bugs.
5.0.0.2 993 2/21/2026
5.0.0.1 796 12/8/2025
5.0.0 825 11/17/2025
5.0.0-RC2 224 11/14/2025
5.0.0-RC1 224 11/14/2025
4.2.12.12 112 3/21/2026
4.2.12.10 114 3/5/2026
4.2.12.10-RC2 13,679 12/15/2025
4.2.12.10-RC1 280 12/15/2025
4.2.12.9 5,499 12/8/2025
4.2.12.8 11,044 10/14/2025
4.2.12.7 234 10/14/2025
4.2.12.6 2,630 9/26/2025
4.2.11.10 93 3/21/2026
4.2.11.9 101 3/17/2026
4.2.11.8 100 3/17/2026
4.2.11.7 102 3/17/2026
4.2.11.6 108 3/5/2026
Loading failed