Gasolutions.Core.GenericRepository
1.0.9.4
dotnet add package Gasolutions.Core.GenericRepository --version 1.0.9.4
NuGet\Install-Package Gasolutions.Core.GenericRepository -Version 1.0.9.4
<PackageReference Include="Gasolutions.Core.GenericRepository" Version="1.0.9.4" />
<PackageVersion Include="Gasolutions.Core.GenericRepository" Version="1.0.9.4" />
<PackageReference Include="Gasolutions.Core.GenericRepository" />
paket add Gasolutions.Core.GenericRepository --version 1.0.9.4
#r "nuget: Gasolutions.Core.GenericRepository, 1.0.9.4"
#:package Gasolutions.Core.GenericRepository@1.0.9.4
#addin nuget:?package=Gasolutions.Core.GenericRepository&version=1.0.9.4
#tool nuget:?package=Gasolutions.Core.GenericRepository&version=1.0.9.4
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.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