39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace JiShe.CollectBus.IoTDBProvider
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// IoTDB数据源
|
|||
|
|
/// </summary>
|
|||
|
|
public interface IIoTDBProvider
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 插入数据
|
|||
|
|
/// </summary>
|
|||
|
|
/// <typeparam name="T"></typeparam>
|
|||
|
|
/// <param name="entity"></param>
|
|||
|
|
/// <returns></returns>
|
|||
|
|
Task InsertAsync<T>(T entity) where T : IoTEntity;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 批量插入数据
|
|||
|
|
/// </summary>
|
|||
|
|
/// <typeparam name="T"></typeparam>
|
|||
|
|
/// <param name="entities"></param>
|
|||
|
|
/// <returns></returns>
|
|||
|
|
Task BatchInsertAsync<T>(IEnumerable<T> entities) where T : IoTEntity;
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 查询数据
|
|||
|
|
/// </summary>
|
|||
|
|
/// <typeparam name="T"></typeparam>
|
|||
|
|
/// <param name="options"></param>
|
|||
|
|
/// <returns></returns>
|
|||
|
|
Task<PagedResult<T>> QueryAsync<T>(QueryOptions options) where T : IoTEntity, new();
|
|||
|
|
}
|
|||
|
|
}
|