IDevCmdRepository.cs 1.3 KB

12345678910111213141516171819202122232425262728
  1. using Microsoft.EntityFrameworkCore;
  2. using Ropin.Inspection.Model.Entities;
  3. using Ropin.Inspection.Model.SearchModel.DEV;
  4. using Ropin.Inspection.Model.ViewModel.DEV;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace Ropin.Inspection.Repository.DEV.Interface
  11. {
  12. public interface IDevCmdRepository : IRepositoryBase<TDEV_Cmd>, IRepositoryBaseById<TDEV_Cmd, string>
  13. {
  14. Task<IEnumerable<DevCmdViewModel>> GetConditionAsync(DevCmdSearchModel searchModel);
  15. }
  16. public interface IDevInstructionRepository : IRepositoryBase<TDEV_Instruction>, IRepositoryBaseById<TDEV_Instruction, string>
  17. {
  18. Task<IEnumerable<DevInstructionViewModel>> GetConditionAsync(DevInstructionSearchModel searchModel);
  19. Task<List<DevInstructionInfo>> GetInstructionByCmdCode(DevInstructionSearchModel searchModel);
  20. }
  21. public interface IDevCmdInstructionRepository : IRepositoryBase<TDEV_CmdInstruction>, IRepositoryBaseById<TDEV_CmdInstruction, string>
  22. {
  23. Task<IEnumerable<DevCmdInstructionViewModel>> GetConditionAsync(DevCmdInstructionSearchModel searchModel);
  24. Task<bool> DeleteBYCmdCode(string cmdCode);
  25. Task<bool> DeleteBYInstruction(string Instruction);
  26. }
  27. }