using Fake.DependencyInjection; using Oms.Domain.KbAggregate.Entities; using Oms.Domain.KbAggregate.Repositories; using Oms.SqlSugarCore.Repositories; namespace Oms.SqlSugarCore.Kb; public class KbArticleRepository : OmsSqlSugarRepository, IKbArticleRepository, IScopedDependency { public Task CountByCategoryIdAsync(int categoryId, CancellationToken cancellationToken = default) => CountAsync(x => x.CategoryId == categoryId, cancellationToken); }