sqlsugar/Src/Asp.Net/SqlSugar/Json2Sql/Provider/Insertable/AppendRow.cs

18 lines
506 B
C#

using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace SqlSugar
{
public partial class JsonInsertableProvider : IJsonInsertableProvider<JsonInsertResult>
{
private void AppendRow(JToken item)
{
var value = item.First().ToString();
var dics = context.Utilities.JsonToColumnsModels(value);
sugarInsertable =this.context.Insertable(dics).AS(this.TableName);
}
}
}