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
<PackageReference Include="Gasolutions.Core.GenericRepository" Version="1.0.10.6" />
<PackageVersion Include="Gasolutions.Core.GenericRepository" Version="1.0.10.6" />
<PackageReference Include="Gasolutions.Core.GenericRepository" />
paket add Gasolutions.Core.GenericRepository --version 1.0.10.6
#r "nuget: Gasolutions.Core.GenericRepository, 1.0.10.6"
#:package Gasolutions.Core.GenericRepository@1.0.10.6
#addin nuget:?package=Gasolutions.Core.GenericRepository&version=1.0.10.6
#tool nuget:?package=Gasolutions.Core.GenericRepository&version=1.0.10.6
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 | Versions 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. |
-
net9.0
- RepoDb.SqlServer (>= 1.13.2-alpha1)
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.
# 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