using HighWayIot.Repository.domain; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace HighWayIot.Repository.service.Impl { public class BaseDeviceinfoServiceImpl : IBaseDeviceinfoService { Repository _deviceInfoRepository => new Repository("sqlite"); public BaseDeviceinfo GetDeviceInfoByDeviceId(int deviceId) { Expression> exp = s1 =>s1.DeviceId == deviceId; BaseDeviceinfo deviceInfo = _deviceInfoRepository.GetSingle(exp); return deviceInfo; } public List GetDeviceInfoListByProcessId(int ProcessId) { Expression> exp = s1 => s1.ProcessId == ProcessId; List deviceinfos = _deviceInfoRepository.GetList(exp); return deviceinfos; } } }