Browse Source

Synchronization code

pull/40/head
sunkaixuan 1 year ago
parent
commit
1bcd427add
  1. 10
      Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableHelper.cs

10
Src/Asp.Net/SqlSugar/Abstract/QueryableProvider/QueryableHelper.cs

@ -1402,11 +1402,15 @@ namespace SqlSugar
JoinWhere = expResult.GetResultString(), JoinWhere = expResult.GetResultString(),
ShortName = lastPareamter.Name, ShortName = lastPareamter.Name,
EntityType= lastPareamter.Type, EntityType= lastPareamter.Type,
TableName = this.Context.EntityMaintenance.GetTableName(lastPareamter.Type) TableName = null
}; };
if (QueryBuilder.IsCrossQueryWithAttr) if (QueryBuilder.IsCrossQueryWithAttr)
{ {
result.TableName=GetTableName(this.Context.EntityMaintenance.GetEntityInfo(lastPareamter.Type), result.TableName); result.TableName = GetTableName(this.Context.EntityMaintenance.GetEntityInfoWithAttr(lastPareamter.Type), result.TableName);
}
else
{
result.TableName= this.Context.EntityMaintenance.GetTableName(lastPareamter.Type);
} }
if (this.Context.CurrentConnectionConfig?.MoreSettings?.PgSqlIsAutoToLower == false) if (this.Context.CurrentConnectionConfig?.MoreSettings?.PgSqlIsAutoToLower == false)
{ {

Loading…
Cancel
Save