| | |
| | | using Microsoft.Data.SqlClient; |
| | | using SqlSugar; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Linq; |
| | | using System.Linq.Expressions; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using WIDESEA_Core.Enums; |
| | | |
| | | namespace WIDESEA_Core.BaseRepository |
| | |
| | | /// SqlsugarClient实体 |
| | | /// </summary> |
| | | ISqlSugarClient Db { get; } |
| | | |
| | | /// <summary> |
| | | /// 通过主键查询数据 |
| | | /// </summary> |
| | |
| | | Expression<Func<T2, bool>> whereExpressionT2, |
| | | Expression<Func<TResult, bool>> whereExpression); |
| | | |
| | | |
| | | Task<List<TResult>> QueryTabsAsync<T, T2, TResult>( |
| | | Expression<Func<T, T2, object[]>> joinExpression, |
| | | Expression<Func<T, T2, TResult>> selectExpression, |
| | |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | Task<int> GetTaskNo(); |
| | | |
| | | /// <summary> |
| | | /// 导航查询所有数据 |
| | | /// </summary> |
| | | /// <param name="whereExpression"></param> |
| | | /// <returns></returns> |
| | | Task<List<TEntity>> QueryDataNavAsync(Expression<Func<TEntity, bool>> whereExpression); |
| | | |
| | | /// <summary> |
| | | /// 导航查询单条数据 |
| | | /// </summary> |
| | | /// <param name="whereExpression"></param> |
| | | /// <returns></returns> |
| | | Task<TEntity> QueryDataNavFirstAsync(Expression<Func<TEntity, bool>> whereExpression); |
| | | } |
| | | } |