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,11 @@
using Features.Locations.Repository;
using MediatR;
namespace Features.Locations.Queries.GetCountry;
public class GetCountryHandler(ILocationRepository repository)
: IRequestHandler<GetCountryQuery, Guid?>
{
public Task<Guid?> Handle(GetCountryQuery request, CancellationToken cancellationToken) =>
repository.GetCountryIdAsync(request.IsoCode);
}

View File

@@ -0,0 +1,5 @@
using MediatR;
namespace Features.Locations.Queries.GetCountry;
public record GetCountryQuery(string IsoCode) : IRequest<Guid?>;