修改仓储

This commit is contained in:
2022-04-26 16:25:02 +08:00
parent 0ca89786fd
commit f118dd6e42
4 changed files with 37 additions and 13 deletions
@@ -191,7 +191,7 @@ namespace IRaCIS.Application.Services
}
var isSuccess = await _subjectRepository.BatchDeleteAsync(u => u.Id == id);
await _subjectVisitRepository.TrackingBatchDeleteAsync(u => u.SubjectId == id);
await _subjectVisitRepository.TrackingDeleteFromQueryAsync(u => u.SubjectId == id);
var subvisit = await _subjectVisitRepository.Where(x => x.SubjectId == id).ToListAsync();
+1 -1
View File
@@ -23,7 +23,7 @@ namespace IRaCIS.Application.Services
public string Get(testModel testModel)
{
var tt= _dicRepository.QueryThenPartiallyUpdateAsync(Guid.Parse("e2b97a6c-35a6-4aa3-7f27-08da13ab33ff"), t => new Dictionary() { Description = "xxxxx" }, true).Result;
var tt= _dicRepository.TrackingUpdateFromQueryAsync(Guid.Parse("e2b97a6c-35a6-4aa3-7f27-08da13ab33ff"), t => new Dictionary() { Description = "xxxxx" }, true).Result;
//var d = _repository.Where<User>(t => t.FullName.Contains("cc")).Select(t => t.FullName).FirstOrDefault();