Browse Source

Synchronization code

SqlSugar5
sunkaixuan 2 years ago
parent
commit
afe6ac2601
  1. 2
      Src/Asp.NetCore2/SqlSugar/Abstract/Reportable/ReportableProvider.cs
  2. 3
      Src/Asp.NetCore2/SqlSugar/Realization/QuestDB/QuestDBProvider.cs

2
Src/Asp.NetCore2/SqlSugar/Abstract/Reportable/ReportableProvider.cs

@ -108,7 +108,7 @@ namespace SqlSugar
private object GetSelect<Y>(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>(Y data, StringBuilder sb,bool isLast)

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

Loading…
Cancel
Save