using DataEntity.Device; using DataRWDAL.Base; using System.Collections.Generic; namespace DataRWDAL.Device { /// /// 设备类型表 /// public class DeviceConfigTypeDB : BaseDB { /// /// 获取设备类型列表 /// /// /// public static List GetAlllList(string projectId) { using (var db = GetInstance()) { return db.Queryable().Where(it => it.ProjectId.Equals(projectId)).ToList(); } } /// /// 获取设备类型信息 /// /// /// public static DeviceConfigTypeModel GetInfodById(string id) { using (var db = GetInstance()) { return db.Queryable().Single(it => it.Id.Equals(id)); } } } }