Class NpgsqlSqlNullabilityProcessor
- Namespace
- Npgsql.EntityFrameworkCore.PostgreSQL.Query.Internal
- Assembly
- Npgsql.EntityFrameworkCore.PostgreSQL.dll
A class that processes a SQL tree based on nullability of nodes to apply null semantics in use and optimize it based on parameter values.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
public class NpgsqlSqlNullabilityProcessor : SqlNullabilityProcessor
- Inheritance
-
NpgsqlSqlNullabilityProcessor
- Inherited Members
Constructors
NpgsqlSqlNullabilityProcessor(RelationalParameterBasedSqlProcessorDependencies, RelationalParameterBasedSqlProcessorParameters)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
public NpgsqlSqlNullabilityProcessor(RelationalParameterBasedSqlProcessorDependencies dependencies, RelationalParameterBasedSqlProcessorParameters parameters)
Parameters
dependencies
RelationalParameterBasedSqlProcessorDependenciesparameters
RelationalParameterBasedSqlProcessorParameters
Methods
VisitAll(PgAllExpression, bool, out bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
protected virtual SqlExpression VisitAll(PgAllExpression allExpression, bool allowOptimizedExpansion, out bool nullable)
Parameters
allExpression
PgAllExpressionallowOptimizedExpansion
boolnullable
bool
Returns
VisitAny(PgAnyExpression, bool, out bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
protected virtual SqlExpression VisitAny(PgAnyExpression anyExpression, bool allowOptimizedExpansion, out bool nullable)
Parameters
anyExpression
PgAnyExpressionallowOptimizedExpansion
boolnullable
bool
Returns
VisitArrayIndex(PgArrayIndexExpression, bool, out bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
protected virtual SqlExpression VisitArrayIndex(PgArrayIndexExpression arrayIndexExpression, bool allowOptimizedExpansion, out bool nullable)
Parameters
arrayIndexExpression
PgArrayIndexExpressionallowOptimizedExpansion
boolnullable
bool
Returns
VisitArraySlice(PgArraySliceExpression, bool, out bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
protected virtual SqlExpression VisitArraySlice(PgArraySliceExpression arraySliceExpression, bool allowOptimizedExpansion, out bool nullable)
Parameters
arraySliceExpression
PgArraySliceExpressionallowOptimizedExpansion
boolnullable
bool
Returns
VisitCustomSqlExpression(SqlExpression, bool, out bool)
Visits a custom SqlExpression added by providers and computes its nullability.
protected override SqlExpression VisitCustomSqlExpression(SqlExpression sqlExpression, bool allowOptimizedExpansion, out bool nullable)
Parameters
sqlExpression
SqlExpressionA sql expression to visit.
allowOptimizedExpansion
boolA bool value indicating if optimized expansion which considers null value as false value is allowed.
nullable
boolA bool value indicating whether the sql expression is nullable.
Returns
- SqlExpression
An optimized sql expression.
VisitILike(PgILikeExpression, bool, out bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
protected virtual SqlExpression VisitILike(PgILikeExpression iLikeExpression, bool allowOptimizedExpansion, out bool nullable)
Parameters
iLikeExpression
PgILikeExpressionallowOptimizedExpansion
boolnullable
bool
Returns
VisitJsonTraversal(PgJsonTraversalExpression, bool, out bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
protected virtual SqlExpression VisitJsonTraversal(PgJsonTraversalExpression jsonTraversalExpression, bool allowOptimizedExpansion, out bool nullable)
Parameters
jsonTraversalExpression
PgJsonTraversalExpressionallowOptimizedExpansion
boolnullable
bool
Returns
VisitNewArray(PgNewArrayExpression, bool, out bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
protected virtual SqlExpression VisitNewArray(PgNewArrayExpression newArrayExpression, bool allowOptimizedExpansion, out bool nullable)
Parameters
newArrayExpression
PgNewArrayExpressionallowOptimizedExpansion
boolnullable
bool
Returns
VisitPostgresBinary(PgBinaryExpression, bool, out bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
protected virtual SqlExpression VisitPostgresBinary(PgBinaryExpression binaryExpression, bool allowOptimizedExpansion, out bool nullable)
Parameters
binaryExpression
PgBinaryExpressionallowOptimizedExpansion
boolnullable
bool
Returns
VisitRegexMatch(PgRegexMatchExpression, bool, out bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
protected virtual SqlExpression VisitRegexMatch(PgRegexMatchExpression regexMatchExpression, bool allowOptimizedExpansion, out bool nullable)
Parameters
regexMatchExpression
PgRegexMatchExpressionallowOptimizedExpansion
boolnullable
bool
Returns
VisitRowValueExpression(PgRowValueExpression, bool, out bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
protected virtual SqlExpression VisitRowValueExpression(PgRowValueExpression rowValueExpression, bool allowOptimizedExpansion, out bool nullable)
Parameters
rowValueExpression
PgRowValueExpressionallowOptimizedExpansion
boolnullable
bool
Returns
VisitSqlBinary(SqlBinaryExpression, bool, out bool)
Visits a SqlBinaryExpression and computes its nullability.
protected override SqlExpression VisitSqlBinary(SqlBinaryExpression sqlBinaryExpression, bool allowOptimizedExpansion, out bool nullable)
Parameters
sqlBinaryExpression
SqlBinaryExpressionA sql binary expression to visit.
allowOptimizedExpansion
boolA bool value indicating if optimized expansion which considers null value as false value is allowed.
nullable
boolA bool value indicating whether the sql expression is nullable.
Returns
- SqlExpression
An optimized sql expression.
VisitSqlFunction(SqlFunctionExpression, bool, out bool)
This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.
protected override SqlExpression VisitSqlFunction(SqlFunctionExpression sqlFunctionExpression, bool allowOptimizedExpansion, out bool nullable)
Parameters
sqlFunctionExpression
SqlFunctionExpressionallowOptimizedExpansion
boolnullable
bool
Returns
VisitUnknownBinary(PgUnknownBinaryExpression, bool, out bool)
Visits a PgUnknownBinaryExpression and computes its nullability.
protected virtual SqlExpression VisitUnknownBinary(PgUnknownBinaryExpression unknownBinaryExpression, bool allowOptimizedExpansion, out bool nullable)
Parameters
unknownBinaryExpression
PgUnknownBinaryExpressionA PgUnknownBinaryExpression expression to visit.
allowOptimizedExpansion
boolA bool value indicating if optimized expansion which considers null value as false value is allowed.
nullable
boolA bool value indicating whether the sql expression is nullable.
Returns
- SqlExpression
An optimized sql expression.