AppendName.cs 599 B

1234567891011121314151617181920
  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 AppendName(JToken item)
  11. {
  12. var tableInfo = jsonCommonProvider.GetTableName(item);
  13. this.TableName = tableInfo.TableName.ToCheckField();
  14. if (tableInfo.ShortName.HasValue())
  15. {
  16. this.TableName = tableInfo.ShortName + "." + tableInfo.TableName;
  17. }
  18. }
  19. }
  20. }