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
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="Talrace.Core.Services" Version="8.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Talrace.Core.Services --version 8.0.1
#r "nuget: Talrace.Core.Services, 8.0.1"
#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 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 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.

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 635 12/1/2023
6.0.7 865 10/10/2023
6.0.6 1,557 3/28/2023
6.0.5 3,370 2/15/2023
6.0.4 225 2/14/2023
6.0.3 2,328 5/5/2022
6.0.2 400 4/29/2022
6.0.1 403 4/29/2022
6.0.0 399 4/28/2022
3.1.19 319 9/24/2021
3.1.15 4,504 3/9/2021
3.1.14 699 12/29/2020
3.1.13 385 12/22/2020
3.1.12 395 12/19/2020
3.1.11 493 12/19/2020
3.1.10 389 12/17/2020
3.1.0 3,193 4/13/2020