Skip to content

Commit 2e20609

Browse files
committed
Better name for extension method
1 parent 3e828f2 commit 2e20609

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Orm/Xtensive.Orm/Orm/Linq/Expressions/ItemProjectorExpression.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public ItemProjectorExpression EnsureEntityIsJoined()
145145
rightIndex++;
146146
}
147147
var offset = dataSource.Header.Length;
148-
dataSource = entityExpression.IsNullable || dataSource.CheckIfUseLeftJoin()
148+
dataSource = entityExpression.IsNullable || dataSource.CheckIfLeftJoinPrefered()
149149
? dataSource.LeftJoin(joinedRs, keyPairs)
150150
: dataSource.Join(joinedRs, keyPairs);
151151
EntityExpression.Fill(entityExpression, offset);
@@ -168,7 +168,7 @@ public ItemProjectorExpression EnsureEntityIsJoined()
168168
rightIndex++;
169169
}
170170
var offset = dataSource.Header.Length;
171-
dataSource = entityFieldExpression.IsNullable || dataSource.CheckIfUseLeftJoin()
171+
dataSource = entityFieldExpression.IsNullable || dataSource.CheckIfLeftJoinPrefered()
172172
? dataSource.LeftJoin(joinedRs, keyPairs)
173173
: dataSource.Join(joinedRs, keyPairs);
174174
entityFieldExpression.RegisterEntityExpression(offset);

Orm/Xtensive.Orm/Orm/Linq/Translator.Expressions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,7 +1666,7 @@ public void EnsureEntityFieldsAreJoined(EntityExpression entityExpression, ItemP
16661666
int offset = itemProjector.DataSource.Header.Length;
16671667
var oldDataSource = itemProjector.DataSource;
16681668

1669-
var newDataSource = entityExpression.IsNullable || oldDataSource.CheckIfUseLeftJoin()
1669+
var newDataSource = entityExpression.IsNullable || oldDataSource.CheckIfLeftJoinPrefered()
16701670
? itemProjector.DataSource.LeftJoin(joinedRs, keyPairs)
16711671
: itemProjector.DataSource.Join(joinedRs, keyPairs);
16721672
itemProjector.DataSource = newDataSource;
@@ -1691,7 +1691,7 @@ private void EnsureEntityReferenceIsJoined(EntityFieldExpression entityFieldExpr
16911691

16921692
var oldDataSource = originalItemProjector.DataSource;
16931693
var offset = oldDataSource.Header.Length;
1694-
var newDataSource = entityFieldExpression.IsNullable || oldDataSource.CheckIfUseLeftJoin()
1694+
var newDataSource = entityFieldExpression.IsNullable || oldDataSource.CheckIfLeftJoinPrefered()
16951695
? oldDataSource.LeftJoin(joinedRs, keyPairs)
16961696
: oldDataSource.Join(joinedRs, keyPairs);
16971697
originalItemProjector.DataSource = newDataSource;

Orm/Xtensive.Orm/Orm/Rse/CompilableProviderExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public static CompilableProvider MakeVoid(this CompilableProvider source)
213213
return new VoidProvider(source.Header);
214214
}
215215

216-
internal static bool CheckIfUseLeftJoin(this CompilableProvider provider)
216+
internal static bool CheckIfLeftJoinPrefered(this CompilableProvider provider)
217217
{
218218
var sourceToCheck = (provider is FilterProvider filterProvider) ? filterProvider.Source : provider;
219219
return (sourceToCheck is ApplyProvider applyProvider && applyProvider.ApplyType == JoinType.LeftOuter) ||

0 commit comments

Comments
 (0)