using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; namespace Yi.Framework.Repository { public interface IRepository : ISimpleClient where T : class, new() { public Task InsertReturnEntityAsync(T entity); public object CommonPage(QueryParameters pars, int pageIndex, int pageSize); public object CommonPage(QueryParameters pars, int pageIndex, int pageSize, bool whereBool, Expression> where); public object CommonPageMapper(Expression> expression, QueryParameters pars, int pageIndex, int pageSize, bool whereBool, Expression> where); public Task FirstMapperAsync(Expression> expression, bool isTenant = true); public Task> ToListMapperAsync(Expression> expression, bool isTenant = true); public Task> ToListMapperAsync(Expression> expression, bool whereBool, Expression> where, bool isTenant = true); public Task> GetListAsync(Expression> whereExpression, bool whereBool, Expression> where, bool isTenant = true); public Task> GetListAsync(bool whereBool, Expression> where, bool isTenant = true); public Task> StoreAsync(string storeName, object para); } }