【发布时间】:2021-09-04 21:43:27
【问题描述】:
这些是我的 dtos
public class CreateTenantDto
{
public Guid TenantId { get; set; }
public List<CreateTenantSectionDto> TenantSections { get; set; }
}
public class CreateTenantSectionDto
{
public Guid SectionId { get; set; }
public List<CreateTenantProperties> TenantProperties { get; set; }
}
public class CreateTenantProperties
{
public Guid PropertyId { get; set; }
public string QuantityName { get; set; }
}
这是我使用 linq 的服务,我想使用部分 id 的输入列表检查部分是否相等
public async Task<bool> AddTenant(CreateTenantDto dto)
{
var personSectionList = await _personFormSectionDetailRepository.Query()
.Filter(x => x.Id == ??? ).GetAllAsync();
}
【问题讨论】: