admin/src/Oms.SqlSugarCore/System/CountryRepository.cs
2026-04-29 09:38:07 +08:00

15 lines
520 B
C#

using Fake.DependencyInjection;
using Oms.Domain.SystemAggregate.Entities;
using Oms.Domain.SystemAggregate.Repositories;
using Oms.SqlSugarCore.Repositories;
namespace Oms.SqlSugarCore.System;
public class CountryRepository : OmsSqlSugarRepository<Country>, ICountryRepository, IScopedDependency
{
public Task<Country?> GetByCountryCodeAsync(string countryCode, CancellationToken cancellationToken = default)
{
return FirstOrDefaultAsync(x => x.CountryCode == countryCode, cancellationToken);
}
}