feat:Initial commit

This commit is contained in:
elar1s
2025-09-25 22:21:41 +03:00
commit 02934b1fd9
35 changed files with 1267 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
using StoreService.Repositories;
namespace StoreService.Extensions;
/// <summary>
/// Repository & UnitOfWork registrations.
/// </summary>
public static class RepositoryExtensions
{
public static IServiceCollection AddRepositories(this IServiceCollection services)
{
// Open generic registration for repositories
services.AddScoped(typeof(IGenericRepository<>), typeof(GenericRepository<>));
// Unit of work (will receive repositories via constructor injection)
services.AddScoped<IUnitOfWork, UnitOfWork>();
return services;
}
}