平安校园
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

PersonFacesService.cs 770 B

2 ay önce
2 ay önce
2 ay önce
12345678910111213141516171819202122232425
  1. namespace SafeCampus.Application.Services.Business.PersonFacesService;
  2. public class PersonFacesService:DbRepository<PersonFaces>, IPersonFacesService
  3. {
  4. public async Task<bool> BatchAdd(List<PersonFaces> list)
  5. {
  6. var oldList = await GetListAsync(x => x.PersonId == list[0].PersonId);
  7. await DeleteAsync(oldList);
  8. await InsertRangeAsync(list);
  9. return true;
  10. }
  11. public async Task<bool> Add(PersonFaces entity)
  12. {
  13. await InsertAsync(entity);
  14. return true;
  15. }
  16. public async Task<bool> Delete(string personId, List<string> faceIds)
  17. {
  18. var delList = await GetListAsync(x => x.PersonId == personId && faceIds.Contains(x.FaceId));
  19. await DeleteAsync(delList);
  20. return true;
  21. }
  22. }