Gasolutions.Core.GenericRepository 1.0.10.6

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

GenericRepository

GenericRepository defines the interfaces necessary to implement the Generic Repository pattern.

The Generic Repository Pattern:

• What it does: Abstracts data access behind interfaces (IReadGenericRepository, IReadGenericRepository<T,TKey>, IWriteGenericRepository). • Purpose: Separates data access logic from business logic, facilitates testing, and enables the exchange of persistence technologies. • Benefits: DAL independence, ease of dependency injection, and unit testing.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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. 
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 Gasolutions.Core.GenericRepository:

Package Downloads
Gasolutions.Core.GenericRepository.RepoDB

Interface and Implementation for a generic repository using RepoDB.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.10.6 99 4/9/2026
1.0.10.5 92 4/9/2026
1.0.10.4 96 4/9/2026
1.0.10.3 107 3/24/2026
1.0.10.2 98 3/24/2026
1.0.10.1 84 3/24/2026
1.0.10 81 3/24/2026
1.0.9.6 97 3/20/2026
1.0.9.4 167 3/14/2026
1.0.9.3 138 3/14/2026
1.0.9 138 3/13/2026
1.0.8.1 122 2/19/2026

# Changelog - Gasolutions.Core.GenericRepository
## [1.0.10.6]
### Changed
- Bug correction in ExecuteScalar method of `IGenericRepository` interface to ensure proper handling of null values and exceptions, improving the robustness and reliability of scalar query executions in applications using this repository.
## [1.0.10.5]
### Changed
- Addded transaction support to ExecuteScalar method in `IGenericRepository` interface, allowing for better control over database operations and ensuring data integrity during complex transactions. This enhancement enables developers to execute scalar queries within a transactional context, providing the ability to commit or roll back changes based on the success or failure of the operations, thus improving the robustness and reliability of data interactions in applications using this repository.
## [1.0.10.4]
### Added
- Add ExecuteScalar method to `IGenericRepository` interface for executing scalar queries.
-
## [1.0.10.3]
### Changed
- Deleted entity field from Max method.
## [1.0.10.2]
### Changed
- Changed ´Max´ method adding field name and additional criteria, removing previous versions.
## [1.0.10.1]
### Changed
- Changed the return type of Max methods to support nullable values.
## [1.0.10.0]
### Added
- Added 'Max' method to `IGenericRepository` interface for retrieving the maximum value of a specified column in a table, enhancing data analysis capabilities.
## [1.0.9.6]
### Added
- Added Delete method with transaction support to `IGenericRepository` interface for enhanced data integrity during delete operations.
## [1.0.9.4]
### Fixed
- Count methods now return long type to accommodate large record counts and prevent overflow issues
## [1.0.9.3]
### Added
- Add Count methods to `IGenericRepository` interface for counting records in a table.
-
## [1.0.9.0]
### Changed
- Add BulkInsert method to `IGenericRepository` interface for efficient batch operations
## [1.0.8.1]
### Changed
- Implementations were moved to a separate project `Gasolutions.Core.GenericRepository.RepoDB` to improve modularity and maintainability
- Changed name from `Gasolutions.Core.Repository` to `Gasolutions.Core.GenericRepository`
## [1.0.7]
### Added
- Comprehensive XML documentation for all repository interfaces and implementations
- Async operation support with `QueryAsync()` method
- Enhanced factory pattern interfaces for repository creation
- Complete test suite with 36+ test cases
- Support for cancellation tokens in async operations
- Configuration interfaces for advanced repository patterns
- RepoDB initialization in test suite
### Changed
- Updated LangVersion to 13.0
- Updated Description to English for international audience
- Improved error handling in repository implementations
- Enhanced nullability annotations for better type safety
- Refactored copyright headers to English
### Fixed
- Repository initialization with RepoDB
- Connection string validation
- Null parameter handling in repository methods
### Documentation
- Added comprehensive API documentation
- Created test suite documentation (README.md)
- Improved inline code comments in English
---
## [1.0.6]
### Initial Release
- Generic repository interface `IReadGenericRepository<T>`
- RepoDB implementation for SQL Server
- Basic read operations with JSON return types
- Write operations (insert, update, delete)
- Connection string management