AppendWhere.cs 647 B

12345678910111213141516171819
  1. using Newtonsoft.Json.Linq;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. using System.Linq;
  6. namespace SqlSugar
  7. {
  8. public partial class JsonUpdateableProvider : IJsonUpdateableProvider<JsonUpdateResult>
  9. {
  10. private void AppendWhere(JToken item)
  11. {
  12. Check.Exception(isList, "Batch updates cannot use Where, only WhereColumns can set columns", "批量更新不能使用Where,只能通过WhereColumns设置列");
  13. var sqlObj = jsonCommonProvider.GetWhere(item, sugarUpdateable.UpdateBuilder.Context);
  14. sugarUpdateable.Where(sqlObj.Key, sqlObj.Value);
  15. }
  16. }
  17. }