Skip to content

Commit

Permalink
Fix SqlConstantExpression obsolete constructor (#35357)
Browse files Browse the repository at this point in the history
Fixes #35355
  • Loading branch information
roji authored Dec 20, 2024
1 parent 6418d63 commit f163289
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public SqlConstantExpression(object value, RelationalTypeMapping? typeMapping)
/// <param name="typeMapping">The <see cref="RelationalTypeMapping" /> associated with the expression.</param>
[Obsolete("Call the constructor accepting a value (and possibly a Type) instead")]
public SqlConstantExpression(ConstantExpression constantExpression, RelationalTypeMapping? typeMapping)
: base(constantExpression.Type.UnwrapNullableType(), typeMapping)
: this(constantExpression.Value, constantExpression.Type, typeMapping)
{
}

Expand Down

0 comments on commit f163289

Please sign in to comment.