ISys_Curreny.cs 715 B

12345678910111213141516171819202122232425262728
  1. using Dapper;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using XYY.Core.Standard.Data.Infrastructure;
  8. using XYY.Model.Standard.Sys;
  9. namespace XYY.Data.Standard.Sys
  10. {
  11. public interface ISys_CurrencyRepository : IBaseRepository<Sys_Currency>
  12. {
  13. Task<IList<Sys_Currency>> GetAll();
  14. }
  15. public class Sys_CurrencyRepository : BaseRepository<Sys_Currency>, ISys_CurrencyRepository
  16. {
  17. public Sys_CurrencyRepository(IUnitOfWork unitOfWork) : base(unitOfWork)
  18. {
  19. }
  20. public async Task<IList<Sys_Currency>> GetAll()
  21. {
  22. return (await QueryAsync()).ToList();
  23. }
  24. }
  25. }