Talrace.Core.Services
8.0.1
dotnet add package Talrace.Core.Services --version 8.0.1
NuGet\Install-Package Talrace.Core.Services -Version 8.0.1
<PackageReference Include="Talrace.Core.Services" Version="8.0.1" />
paket add Talrace.Core.Services --version 8.0.1
#r "nuget: Talrace.Core.Services, 8.0.1"
// Install Talrace.Core.Services as a Cake Addin #addin nuget:?package=Talrace.Core.Services&version=8.0.1 // Install Talrace.Core.Services as a Cake Tool #tool nuget:?package=Talrace.Core.Services&version=8.0.1
About
This package contains a set of services for working with relational databases (Microsoft.EntityFrameworkCore.Relational).
Services provide various operations (create, read, update, delete, and others) for working with data.
Available api
IGetContextService<TContext, TEntity> - interface provides read operations without tracking generic database context.
IGetService<TEntity> - interface provides read operations without tracking default database context.
IGetContextService<TContext, TEntity, TDto> - interface provides read operations with mapping entities to data transfer objects without tracking generic database context.
IGetService<TEntity, TDto> - interface provides read operations with mapping entities to data transfer objects without tracking default database context.
ICrudContextService<TContext, TEntity, TDto> - interface provides CRUD operations without tracking generic database context.
ICrudService<TEntity, TDto> - interface provides CRUD operations without tracking default database context.
GetContextServiceExtensions - static class provides extension methods for IGetContextService interfaces for creating a sort order by Id.
ServiceCollectionExtensions - static class provides extension methods for IServiceCollection interface. Methods add services to the dependency container.
Services injection
To work with services, you need to add them to the dependency container. Before adding services, you need to add a default DbContext implementation and add relational database provider (Microsoft.EntityFrameworkCore.InMemory, Microsoft.EntityFrameworkCore.SqlServer, etc.).
public void ConfigureServices(IServiceCollection services) {
// TestDbContext - should be inherited from DbContext and represent a relational database.
services.AddDefaultDbContext<TestDbContext>();
services.AddCoreServices(typeof(Startup).GetTypeInfo().Assembly);
}
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. |
-
net8.0
- AutoMapper (>= 12.0.1)
- AutoMapper.Extensions.Microsoft.DependencyInjection (>= 12.0.1)
- Talrace.Core.Dal (>= 8.0.0)
- Talrace.Core.Interfaces (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.0.1 | 2,399 | 12/1/2023 |
6.0.7 | 1,060 | 10/10/2023 |
6.0.6 | 1,583 | 3/28/2023 |
6.0.5 | 3,402 | 2/15/2023 |
6.0.4 | 254 | 2/14/2023 |
6.0.3 | 2,359 | 5/5/2022 |
6.0.2 | 434 | 4/29/2022 |
6.0.1 | 431 | 4/29/2022 |
6.0.0 | 424 | 4/28/2022 |
3.1.19 | 343 | 9/24/2021 |
3.1.15 | 4,537 | 3/9/2021 |
3.1.14 | 726 | 12/29/2020 |
3.1.13 | 414 | 12/22/2020 |
3.1.12 | 420 | 12/19/2020 |
3.1.11 | 520 | 12/19/2020 |
3.1.10 | 414 | 12/17/2020 |
3.1.0 | 3,228 | 4/13/2020 |