using MongoDB.Driver;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Metadata;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
namespace Business.Core.MongoDBHelper
{
///
/// MongoDB接口
///
///
public interface IMongoDB where T : Entity
{
///
/// 插入一条数据
///
///
///
void InsertOne(T document);
///
/// 插入多条数据
///
///
///
void InsertMany(List documents);
///
/// 更新一条数据
///
///
///
///
ReplaceOneResult UpdateOne(T documents,long id);
///
/// 获取所有数据
///
///
List GetAll();
///
/// 根据ID获取数据
///
///
///
T GetOneByID(long id);
}
}