有没有办法在使用GetAllIncluding
orInclude
方法时自动激活“IsSoftDelete”EF Core 过滤器?
public override Task<PublicationDto> Get(EntityDto<Guid> input)
{
var entity = Repository
.GetAllIncluding(x => x.SocialPosts)
.FirstOrDefault(x => x.Id == input.Id);
return Task.FromResult(entity.MapTo<PublicationDto>());
}