using Application.Services.Database.PostgreSQL; using Core.Entities; using Infrastructure.Data; using Microsoft.EntityFrameworkCore; namespace Infrastructure.Services.PostgreSQL; public class PatientRepository(HealthcareManagerDatabase context) : BasePostgreSQLRepository(context), IPatientRepository { public async Task FindByEmailAsync(string email) { return await _context.Patients.FirstOrDefaultAsync(d => d.Email == email); } }