21 lines
599 B
C#
21 lines
599 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 AppendName(JToken item)
|
|
{
|
|
var tableInfo = jsonCommonProvider.GetTableName(item);
|
|
this.TableName = tableInfo.TableName.ToCheckField();
|
|
if (tableInfo.ShortName.HasValue())
|
|
{
|
|
this.TableName = tableInfo.ShortName + "." + tableInfo.TableName;
|
|
}
|
|
}
|
|
}
|
|
}
|