using Dapper; using Galaeth.Core.Entities; using Galaeth.Core.Infrastructure; using Galaeth.Core.RepositoryInterfaces; using Injectio.Attributes; namespace Galaeth.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};")); } }