// // Copyright (c) alveus.dev. All rights reserved. Licensed under the MIT License. // using Astral.Core.Entities; using Astral.Core.Infrastructure; using Astral.Core.RepositoryInterfaces; using Dapper; using Injectio.Attributes; namespace Astral.DAL.Repositories; /// [RegisterScoped] public class EmailDomainBlacklistRepository : BaseRepository, IEmailDomainBlacklistRepository { /// /// Initializes a new instance of the class. /// /// Instance of . public EmailDomainBlacklistRepository(IDbConnectionProvider db) : base(db) { } /// public async Task CountEntries() { return await WithDatabaseAsync(async connection => await connection.QueryFirstAsync($"SELECT COUNT(*) FROM {Table};")); } }