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
|
|
|
}
|
}
|