| | |
| | | using System.Text; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Runtime.Serialization; |
| | | using System.Runtime.Serialization; |
| | | using System.Linq; |
| | | using System.Reflection; |
| | | |
| | | namespace IStation.IDAL |
| | | { |
| | | /// <summary> |
| | | /// 测点映射 |
| | | /// </summary> |
| | | public interface IMonitorPointMapping<T> : IBaseDAL<T> where T : Entity.MonitorPointMapping, new() |
| | | { |
| | | |
| | | } |
| | | public interface IMonitorPointMapping<T> : IBaseDAL<T> where T : Entity.MonitorPointMapping, new() |
| | | { |
| | | |
| | | #region Query |
| | | |
| | | /// <summary> |
| | | /// 根据 MonitorPointId 获取 |
| | | /// </summary> |
| | | List<T> QueryByMonitorPointId(long projectId, long monitorPointId); |
| | | |
| | | /// <summary> |
| | | /// 根据 ObjectType 和 ObjectId 获取 |
| | | /// </summary> |
| | | List<T> QueryByObjectTypeAndObjectId(long projectId, string objectType, long objectId); |
| | | |
| | | /// <summary> |
| | | /// 根据 ObjectType 和 ObjectIds 获取 |
| | | /// </summary> |
| | | List<T> GetByObjectTypeAndObjectIds(long projectId, string objectType, IEnumerable<long> objectIds); |
| | | |
| | | #endregion |
| | | |
| | | #region Set |
| | | |
| | | /// <summary> |
| | | /// 根据 ObjectType 和 ObjectId 设置 |
| | | /// </summary> |
| | | bool SetOfObject(long projectId, string objectType, long objectId, IEnumerable<Entity.MonitorPointMapping> list); |
| | | |
| | | #endregion |
| | | |
| | | #region Delete |
| | | |
| | | /// <summary> |
| | | /// 根据 MonitorPointId 删除 |
| | | /// </summary> |
| | | bool DeleteByMonitorPointId(long projectId, long monitorPointId); |
| | | |
| | | /// <summary> |
| | | /// 根据 ObjectType 和 ObjectId 删除 |
| | | /// </summary> |
| | | bool DeleteByObjectTypeAndObjectId(long projectId, string objectType, long objectId); |
| | | |
| | | #endregion |
| | | |
| | | |
| | | } |
| | | } |