persistence/Persistence.Repository/DependencyInjection.cs

25 lines
707 B
C#
Raw Normal View History

using Microsoft.Extensions.DependencyInjection;
using Persistence.Database.Model;
2024-11-26 10:32:44 +05:00
using Persistence.Models;
using Persistence.Repositories;
using Persistence.Repository.Data;
using Persistence.Repository.Repositories;
namespace Persistence.Repository;
public static class DependencyInjection
{
public static void MapsterSetup()
{
}
public static IServiceCollection AddInfrastructure(this IServiceCollection services)
{
MapsterSetup();
services.AddTransient<ITimeSeriesDataRepository<DataSaubDto>, TimeSeriesDataCachedRepository<DataSaub, DataSaubDto>>();
services.AddTransient<IChangeLogRepository, ChangeLogRepository>();
return services;
}
}