Skip to content

Commit 62a94cb

Browse files
authored
Per our conventions, this parameter shouldn't have "is" prefix. (#35957)
1 parent 6f33e42 commit 62a94cb

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/EFCore.Cosmos/Query/Internal/CosmosShapedQueryCompilingExpressionVisitor.ParameterInliner.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ protected override Expression VisitExtension(Expression expression)
116116

117117
return new SqlFunctionExpression(
118118
fullTextScoreFunction.Name,
119-
isScoringFunction: true,
119+
scoringFunction: true,
120120
[property, sqlExpressionFactory.Constant(keywordValues, typeMapping)],
121121
fullTextScoreFunction.Type,
122122
fullTextScoreFunction.TypeMapping);

src/EFCore.Cosmos/Query/Internal/Expressions/SqlFunctionExpression.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public SqlFunctionExpression(
2626
IEnumerable<Expression> arguments,
2727
Type type,
2828
CoreTypeMapping? typeMapping)
29-
: this(name, isScoringFunction: false, arguments, type, typeMapping)
29+
: this(name, scoringFunction: false, arguments, type, typeMapping)
3030
{
3131
}
3232

@@ -38,15 +38,15 @@ public SqlFunctionExpression(
3838
/// </summary>
3939
public SqlFunctionExpression(
4040
string name,
41-
bool isScoringFunction,
41+
bool scoringFunction,
4242
IEnumerable<Expression> arguments,
4343
Type type,
4444
CoreTypeMapping? typeMapping)
4545
: base(type, typeMapping)
4646
{
4747
Name = name;
4848
Arguments = arguments.ToList();
49-
IsScoringFunction = isScoringFunction;
49+
IsScoringFunction = scoringFunction;
5050
}
5151

5252
/// <summary>

src/EFCore.Cosmos/Query/Internal/SqlExpressionFactory.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ public virtual SqlExpression Function(
660660
IEnumerable<Expression> arguments,
661661
Type returnType,
662662
CoreTypeMapping? typeMapping = null)
663-
=> BuildFunction(functionName, isScoringFunction: false, arguments, returnType, typeMapping);
663+
=> BuildFunction(functionName, scoringFunction: false, arguments, returnType, typeMapping);
664664

665665
/// <summary>
666666
/// This is an internal API that supports the Entity Framework Core infrastructure and not subject to
@@ -673,11 +673,11 @@ public virtual SqlExpression ScoringFunction(
673673
IEnumerable<Expression> arguments,
674674
Type returnType,
675675
CoreTypeMapping? typeMapping = null)
676-
=> BuildFunction(functionName, isScoringFunction: true, arguments, returnType, typeMapping);
676+
=> BuildFunction(functionName, scoringFunction: true, arguments, returnType, typeMapping);
677677

678678
private SqlExpression BuildFunction(
679679
string functionName,
680-
bool isScoringFunction,
680+
bool scoringFunction,
681681
IEnumerable<Expression> arguments,
682682
Type returnType,
683683
CoreTypeMapping? typeMapping = null)
@@ -691,7 +691,7 @@ private SqlExpression BuildFunction(
691691

692692
return new SqlFunctionExpression(
693693
functionName,
694-
isScoringFunction,
694+
scoringFunction,
695695
typeMappedArguments,
696696
returnType,
697697
typeMapping);

0 commit comments

Comments
 (0)