15 lines
520 B
C#
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);
|
|
}
|
|
}
|