TemplatePro/BZPT.SqlSugarRepository/IRepositorySugarBase.cs

29 lines
911 B
C#

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