更新问题
#1658
Replies: 1 comment
-
把 SQL 监视打开,查看执行的 SQL |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
`var accountRepo = _patientRepository.GetRepository();
var item = new UserAccountEntity { ID = accountId };
accountRepo.Attach(item);
item.Password = password;
item.UpdateTime = DateTime.Now;
var rows = await accountRepo.UpdateAsync(item);
return rows;`
我在更新中,更新了账户密码和更新时间,但是对应记录的另一个字段会变空,希望解答一下
Beta Was this translation helpful? Give feedback.
All reactions