public class TpmProjectEditDto : : FullAuditedEntity<long?, User>
{
public string Name { get; set; }
public ICollection<TpmProjectContactLinkDto> TpmProjectContactLink { get; set; }
public ICollection<TpmProjectClassLinkDto> TpmProjectClassLink { get; set; }
}
protected virtual async Task Update(TpmProjectEditDto input)
{
var entity = await _entityRepository.GetAllIncluding(t=>t.TpmProjectContactLink,t=>t.TpmProjectClassLink,t => t.TpmProjectErrorLink).Where(t => t.Id == input.Id).SingleOrDefaultAsync();
ObjectMapper.Map(input, entity);
await _entityRepository.UpdateAsync(entity);
}
TpmProjectContactLink
和TpmProjectClassLink
无法更新-如何修改代码实现一对多更新?