sqlsugar/Src/OracleUS7ASCII/SqlSugar/Json2Sql/Provider/Insertable/AppendName.cs

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;
}
}
}
}