34 lines
1.1 KiB
C#
34 lines
1.1 KiB
C#
/***********************************************************
|
|
**项目名称:
|
|
**功能描述: 仓储 的摘要说明
|
|
**作 者: 易栋梁
|
|
**版 本 号: 1.0
|
|
**创建日期: 2015/12/7 16:06:56
|
|
**修改历史:
|
|
************************************************************/
|
|
|
|
using IdentityModel;
|
|
using Microsoft.AspNetCore.Http;
|
|
using Microsoft.Extensions.Logging;
|
|
using BZPT.Domains.Entity;
|
|
using BZPT.Domains.Entity.Sys;
|
|
using NPlatform.Filters;
|
|
using NPlatform.Result;
|
|
using System.Linq.Expressions;
|
|
using DevExtreme.AspNet.Data;
|
|
|
|
namespace BZPT.Repositories
|
|
{
|
|
public interface IRepositorySugarBase<TEntity, TPrimaryKey>: IRepository<TEntity,TPrimaryKey> where TEntity : EntityBase<TPrimaryKey>
|
|
{
|
|
|
|
IHttpContextAccessor httpContextAccessor { get; set; }
|
|
|
|
string? GetUserId();
|
|
string? GetUserName();
|
|
Task<int> UpdateAsync(Expression<Func<TEntity, TEntity>> columns, Expression<Func<TEntity, bool>> where);
|
|
Task<IListResult<TEntity>> GetPagedAsync(DataSourceLoadOptions loadOptions);
|
|
|
|
Task<int> UpdatesAsync(List<TEntity> entities, Expression<Func<TEntity, object>> columns);
|
|
}
|
|
} |