12345678910111213141516171819202122232425262728 |
- using Dapper;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using XYY.Core.Standard.Data.Infrastructure;
- using XYY.Model.Standard.Sys;
- namespace XYY.Data.Standard.Sys
- {
- public interface ISys_CurrencyRepository : IBaseRepository<Sys_Currency>
- {
- Task<IList<Sys_Currency>> GetAll();
- }
- public class Sys_CurrencyRepository : BaseRepository<Sys_Currency>, ISys_CurrencyRepository
- {
- public Sys_CurrencyRepository(IUnitOfWork unitOfWork) : base(unitOfWork)
- {
- }
- public async Task<IList<Sys_Currency>> GetAll()
- {
- return (await QueryAsync()).ToList();
- }
- }
- }
|