Browse Source

Update Multi db AOP

pull/40/head
sunkaixuan 1 year ago
parent
commit
b6289584c5
  1. 8
      Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableHelper.cs

8
Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableHelper.cs

@ -1402,11 +1402,15 @@ namespace SqlSugar
JoinWhere = expResult.GetResultString(),
ShortName = lastPareamter.Name,
EntityType= lastPareamter.Type,
TableName = this.Context.EntityMaintenance.GetTableName(lastPareamter.Type)
TableName = null
};
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)
{

Loading…
Cancel
Save