This repository was archived by the owner on Feb 1, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Source/LinqToDB.EntityFrameworkCore Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -657,10 +657,11 @@ string PrepareExpressionText(Expression? expr)
657657 return text ;
658658 }
659659
660- // https://github.com/npgsql/efcore.pg/blob/main/src/EFCore.PG/Query/Expressions/Internal/PostgresBinaryExpression.cs
661- if ( newExpression . GetType ( ) . Name == "PostgresBinaryExpression" )
660+ // https://github.com/npgsql/efcore.pg/blob/main/src/EFCore.PG/Query/Expressions/Internal/PgBinaryExpression.cs
661+ // renamed in 8.0.0
662+ if ( newExpression . GetType ( ) . Name == "PgBinaryExpression" )
662663 {
663- // Handling Npgsql PostgresBinaryExpression
664+ // Handling Npgsql PgBinaryExpression
664665
665666 var left = ( Expression ) newExpression . GetType ( ) . GetProperty ( "Left" ) ! . GetValue ( newExpression ) ! ;
666667 var right = ( Expression ) newExpression . GetType ( ) . GetProperty ( "Right" ) ! . GetValue ( newExpression ) ! ;
@@ -699,7 +700,7 @@ string PrepareExpressionText(Expression? expr)
699700 "JsonExistsAny" => "?|" ,
700701 "JsonExistsAll" => "?&" ,
701702 _ => throw new InvalidOperationException (
702- $ "Unknown PostgresBinaryExpression .OperatorType: '{ operand } '")
703+ $ "Unknown PgBinaryExpression .OperatorType: '{ operand } '")
703704 } ;
704705
705706 switch ( operand )
You can’t perform that action at this time.
0 commit comments