refactor(database): update seed pipeline to use dapper (#277)

This commit is contained in:
Aaron Po
2026-09-05 00:37:14 -04:00
committed by GitHub
parent 78ad32e93a
commit d9411eb00e
43 changed files with 1023 additions and 735 deletions

View File

@@ -0,0 +1,12 @@
using Features.Locations.Dtos;
using Features.Locations.Repository;
using MediatR;
namespace Features.Locations.Queries.GetCityById;
public class GetCityByIdHandler(ILocationRepository repository)
: IRequestHandler<GetCityByIdQuery, CityDto?>
{
public Task<CityDto?> Handle(GetCityByIdQuery request, CancellationToken cancellationToken) =>
repository.GetCityByIdAsync(request.CityId);
}

View File

@@ -0,0 +1,6 @@
using Features.Locations.Dtos;
using MediatR;
namespace Features.Locations.Queries.GetCityById;
public record GetCityByIdQuery(Guid CityId) : IRequest<CityDto?>;