#region << 版 本 注 释 >> /*-------------------------------------------------------------------- * 版权所有 (c) 2025 WenJY 保留所有权利。 * CLR版本:4.0.30319.42000 * 机器名称:Mr.Wen's MacBook Pro * 命名空间:Sln.Iot.Repository.service.base * 唯一标识:4F2637EA-9206-45C6-92B8-E2CDBA5A1B22 * * 创建者:WenJY * 电子邮箱: * 创建时间:2025-04-11 13:26:02 * 版本:V1.0.0 * 描述: * *-------------------------------------------------------------------- * 修改人: * 时间: * 修改说明: * * 版本:V1.0.0 *--------------------------------------------------------------------*/ #endregion << 版 本 注 释 >> using System; using System.Collections.Generic; using System.Linq.Expressions; namespace Sln.Iot.Repository.service.@base { public interface IBaseService where T : class { /// /// 添加实体信息 /// /// /// bool Insert(T model); /// /// 批量添加实体集合 /// /// /// bool Insert(List lisT); /// /// 根据id 删除信息 /// /// /// bool DeleteById(object id); /// /// 根据实体删除信息 /// /// /// bool Delete(T model); /// /// 根据实体集合批量删除信息 /// /// /// bool Deletes(List entitys); /// /// 根据实体更新信息 /// /// /// bool Update(T model); /// /// 批量更新实体集合信息 /// /// /// bool Update(List entitys); /// /// 根据Where条件更新实体信息 /// /// /// /// bool Update(T entity, string strWhere); /// /// 根据实体更新指定列 /// /// /// /// /// /// bool Update(T entity, List lstColumns = null, List lstIgnoreColumns = null, string strWhere = ""); /// /// 查询所有信息 /// /// List Query(); /// /// 根据Id查询实体 /// /// /// T Query(object objId); /// /// 根据表达式查询 /// /// /// List Query(Expression> whereExpression); /// /// 根据表达式排序查询 /// /// 查询条件 /// 排序条件 /// 是否正序 /// List Query(Expression> whereExpression, Expression> orderByExpression, bool isAsc = true); } }