using DMS.Core.Models; using SqlSugar; using System.Collections.Generic; using System.Threading.Tasks; namespace DMS.Infrastructure.Interfaces { public interface IDeviceRepository { Task AddAsync(DbDevice model); Task UpdateAsync(DbDevice model); Task DeleteAsync(DbDevice model); Task> GetAllAsync(); Task GetByIdAsync(int id); Task BeginTranAsync(); Task CommitTranAsync(); Task RollbackTranAsync(); } }