AppendRow.cs 506 B

1234567891011121314151617
  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 JsonInsertableProvider : IJsonInsertableProvider<JsonInsertResult>
  9. {
  10. private void AppendRow(JToken item)
  11. {
  12. var value = item.First().ToString();
  13. var dics = context.Utilities.JsonToColumnsModels(value);
  14. sugarInsertable =this.context.Insertable(dics).AS(this.TableName);
  15. }
  16. }
  17. }