AppendWhereColumns.cs 550 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 AppendWhereColumns(JToken item)
  11. {
  12. var columns = item.First().ToObject<string[]>();
  13. Check.ExceptionEasy(columns.IsNullOrEmpty(), "need WhereColumns", "WhereColumns 需要设置列名");
  14. this.sugarUpdateable.WhereColumns(columns);
  15. }
  16. }
  17. }