EOF.Repositories.EFCore
1.0.8
dotnet add package EOF.Repositories.EFCore --version 1.0.8
NuGet\Install-Package EOF.Repositories.EFCore -Version 1.0.8
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="EOF.Repositories.EFCore" Version="1.0.8" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EOF.Repositories.EFCore --version 1.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EOF.Repositories.EFCore, 1.0.8"
#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.
// Install EOF.Repositories.EFCore as a Cake Addin #addin nuget:?package=EOF.Repositories.EFCore&version=1.0.8 // Install EOF.Repositories.EFCore as a Cake Tool #tool nuget:?package=EOF.Repositories.EFCore&version=1.0.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Generic Repository and Unit of Work NuGet Package
This package provides a reusable and generic implementation of the Repository pattern, along with the Unit of Work pattern, to simplify data access and management in your .NET applications.
License
This project is licensed under the MIT License.
Features
- Generic Repository Pattern: A reusable implementation of the repository pattern to avoid redundant code.
- Unit of Work: Manages transaction handling and ensures a consistent and easy-to-use approach for committing changes.
Installation
You can install the package from NuGet using the .NET CLI:
dotnet add package EOF.Repositories.EFCore --version 1.0.6
## Usage
Below is an example of how to use the generic repository and unit of work in your project:
```csharp
public class YourService
{
private readonly IUnitOfWork _unitOfWork;
public YourService(IUnitOfWork unitOfWork)
{
_unitOfWork = unitOfWork;
}
public async Task AddEntityAsync(YourEntity entity)
{
var yourEntityRepository = uow.GetRepository<YourEntity>();
await yourEntityRepository.AddAsync(entity);
await _unitOfWork.SaveChangesAsync();
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.EntityFrameworkCore (>= 8.0.8)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.