ningshuxia
2023-02-24 1e4b358de58e36bfbf692ab2538ff9e7d60fd025
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.Runtime.Serialization;
using System.Linq;
using System.Reflection;
 
namespace IStation.IDAL
{
    /// <summary>
    /// 测点映射
    /// </summary>    
    public interface IMonitorPointMapping<T> : IProjectDAL_Cover<T> where T : Entity.MonitorPointMapping, new()
    {
 
        #region Get
 
        /// <summary>
        /// 根据 MonitorPointId 查询
        /// </summary> 
        List<T> GetByMonitorPointId(long projectId, long monitorPointId);
 
        /// <summary>
        /// 根据 ObjectType 和 ObjectId 查询
        /// </summary> 
        List<T> GetByObjectTypeAndObjectId(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
 
 
    }
}