Order_ApiDeclarationRepository.cs 878 B

123456789101112131415161718192021222324252627282930
  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.Order;
  9. using XYY.Model.Standard.OrderAddressCheck;
  10. namespace XYY.Data.Standard.Order
  11. {
  12. public interface IOrderApiDeclarationRepository : IBaseRepository<Order_ApiDeclaration>
  13. {
  14. List<FRSLAreas> GetFRSLAreas();
  15. }
  16. public class OrderApiDeclarationRepository : BaseRepository<Order_ApiDeclaration>, IOrderApiDeclarationRepository
  17. {
  18. public OrderApiDeclarationRepository(IUnitOfWork unitOfWork) : base(unitOfWork)
  19. {
  20. }
  21. public List<FRSLAreas> GetFRSLAreas()
  22. {
  23. string sql = @"select * from FRSLAreas(nolock)";
  24. return _unitOfWork.Connection.Query<FRSLAreas>(sql).ToList();
  25. }
  26. }
  27. }