Skip to content

Commit 20ec240

Browse files
authored
Remove ISessionFactoryImplementor parameter from TableGroupJoinHelper (#3411)
1 parent fca2fe9 commit 20ec240

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/NHibernate/Engine/JoinSequence.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,11 @@ internal virtual JoinFragment ToJoinFragment(
187187
{
188188
Join join = joins[i];
189189

190-
withClauses[i] = GetWithClause(enabledFilters, ref withClauseFragment, join, last);
190+
withClauses[i] = GetWithClause(enabledFilters, join, last, ref withClauseFragment);
191191
last = join.Joinable;
192192
}
193193

194-
if (rootJoinable == null && !IsThetaStyle && TableGroupJoinHelper.ProcessAsTableGroupJoin(joins, withClauses, includeAllSubclassJoins, joinFragment, alias => IsIncluded(alias), factory))
194+
if (rootJoinable == null && !IsThetaStyle && TableGroupJoinHelper.ProcessAsTableGroupJoin(joins, withClauses, includeAllSubclassJoins, joinFragment, alias => IsIncluded(alias)))
195195
{
196196
return joinFragment;
197197
}
@@ -223,7 +223,7 @@ internal virtual JoinFragment ToJoinFragment(
223223
return joinFragment;
224224
}
225225

226-
private SqlString GetWithClause(IDictionary<string, IFilter> enabledFilters, ref SqlString withClauseFragment, Join join, IJoinable last)
226+
private SqlString GetWithClause(IDictionary<string, IFilter> enabledFilters, Join join, IJoinable last, ref SqlString withClauseFragment)
227227
{
228228
string on = join.AssociationType.GetOnCondition(join.Alias, factory, enabledFilters);
229229
var withConditions = new List<object>();

src/NHibernate/Engine/TableGroupJoinHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace NHibernate.Engine
1717
// ) ON person0_.Id = individual1_.PersonID AND individual1_1_.Deleted = @p0
1818
internal class TableGroupJoinHelper
1919
{
20-
internal static bool ProcessAsTableGroupJoin(IReadOnlyList<IJoin> tableGroupJoinables, SqlString[] withClauseFragments, bool includeAllSubclassJoins, JoinFragment joinFragment, Func<string, bool> isSubclassIncluded, ISessionFactoryImplementor sessionFactoryImplementor)
20+
internal static bool ProcessAsTableGroupJoin(IReadOnlyList<IJoin> tableGroupJoinables, SqlString[] withClauseFragments, bool includeAllSubclassJoins, JoinFragment joinFragment, Func<string, bool> isSubclassIncluded)
2121
{
2222
if (!NeedsTableGroupJoin(tableGroupJoinables, withClauseFragments, includeAllSubclassJoins, isSubclassIncluded))
2323
return false;

src/NHibernate/Loader/JoinWalker.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -898,8 +898,7 @@ protected JoinFragment MergeOuterJoins(IList<OuterJoinableAssociation> associati
898898
new[] {oj.On, entityAssociation.On, string.IsNullOrEmpty(f) ? SqlString.Empty : new SqlString(f)},
899899
true,
900900
outerjoin,
901-
alias => true,
902-
factory))
901+
_ => true))
903902
{
904903
index++;
905904
continue;
@@ -921,7 +920,7 @@ protected JoinFragment MergeOuterJoins(IList<OuterJoinableAssociation> associati
921920
}
922921
}
923922

924-
if (TableGroupJoinHelper.ProcessAsTableGroupJoin(new[] {oj}, new[] {oj.On, filter}, true, outerjoin, alias => true, factory))
923+
if (TableGroupJoinHelper.ProcessAsTableGroupJoin(new[] {oj}, new[] {oj.On, filter}, true, outerjoin, _ => true))
925924
continue;
926925

927926
oj.AddJoins(outerjoin);

0 commit comments

Comments
 (0)