From afe6ac2601ecf6f9fdf7f4d9bd370380abac1075 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Thu, 6 Oct 2022 14:23:03 +0800 Subject: [PATCH] Synchronization code --- .../SqlSugar/Abstract/Reportable/ReportableProvider.cs | 2 +- .../SqlSugar/Realization/QuestDB/QuestDBProvider.cs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Src/Asp.NetCore2/SqlSugar/Abstract/Reportable/ReportableProvider.cs b/Src/Asp.NetCore2/SqlSugar/Abstract/Reportable/ReportableProvider.cs index dff3f142c..ff96cad18 100644 --- a/Src/Asp.NetCore2/SqlSugar/Abstract/Reportable/ReportableProvider.cs +++ b/Src/Asp.NetCore2/SqlSugar/Abstract/Reportable/ReportableProvider.cs @@ -108,7 +108,7 @@ namespace SqlSugar private object GetSelect(EntityColumnInfo it,Y data) { - return string.Format(" {0} AS {1} ", FormatValue(it.PropertyInfo.GetValue(data,null), it),it.PropertyName); + return string.Format(" {0} AS {1} ", FormatValue(it.PropertyInfo.GetValue(data,null), it),queryBuilder.Builder.GetTranslationColumnName(it.PropertyName)); } private void NoClassMethod(Y data, StringBuilder sb,bool isLast) diff --git a/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/QuestDBProvider.cs b/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/QuestDBProvider.cs index ce4cd18c4..08e487821 100644 --- a/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/QuestDBProvider.cs +++ b/Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/QuestDBProvider.cs @@ -36,7 +36,7 @@ namespace SqlSugar base._DbConnection = value; } } - + public override void BeginTran(string transactionName) { base.BeginTran(); @@ -101,7 +101,6 @@ namespace SqlSugar } } } - public override void SetCommandToAdapter(IDataAdapter dataAdapter, DbCommand command) { ((NpgsqlDataAdapter)dataAdapter).SelectCommand = (NpgsqlCommand)command;