Update AddJoinInfo(Type JoinType, string shortName, string joinWhere, JoinType type = JoinType.Left)

This commit is contained in:
sunkaixuan
2023-09-11 14:14:57 +08:00
parent 251c869942
commit a5d1d07e3b

View File

@@ -573,6 +573,7 @@ namespace SqlSugar
} }
public ISugarQueryable<T> AddJoinInfo(Type JoinType, string shortName, string joinWhere, JoinType type = JoinType.Left) public ISugarQueryable<T> AddJoinInfo(Type JoinType, string shortName, string joinWhere, JoinType type = JoinType.Left)
{ {
this.Context.InitMappingInfo(JoinType);
var tableName = this.Context.EntityMaintenance.GetEntityInfo(JoinType).DbTableName; var tableName = this.Context.EntityMaintenance.GetEntityInfo(JoinType).DbTableName;
QueryBuilder.JoinIndex = +1; QueryBuilder.JoinIndex = +1;
QueryBuilder.JoinQueryInfos QueryBuilder.JoinQueryInfos