Refactored `DependencyInjection` to use a generic `TRecDbContext` for flexibility and added scoped registration for `IRecDbContext`. Updated `RecDbContext` to implement the new `IRecDbContext` interface, ensuring adherence to the application-layer contract. Introduced the `IRecDbContext` interface in the application layer, defining `DbSet` properties for key entities and a `SaveChangesAsync` method. Updated `ReC.Infrastructure.csproj` to reference the application project for interface access.
21 lines
678 B
XML
21 lines
678 B
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net8.0</TargetFramework>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<Nullable>enable</Nullable>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="DigitalData.Core.Infrastructure" Version="2.5.2" />
|
|
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.11" />
|
|
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="10.0.0" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\ReC.Application\ReC.Application.csproj" />
|
|
<ProjectReference Include="..\ReC.Domain\ReC.Domain.csproj" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|