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
dependenciesRelationalParameterBasedSqlProcessorDependenciesparametersRelationalParameterBasedSqlProcessorParameters
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
allExpressionPgAllExpressionallowOptimizedExpansionboolnullablebool
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
anyExpressionPgAnyExpressionallowOptimizedExpansionboolnullablebool
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
arrayIndexExpressionPgArrayIndexExpressionallowOptimizedExpansionboolnullablebool
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
arraySliceExpressionPgArraySliceExpressionallowOptimizedExpansionboolnullablebool
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
sqlExpressionSqlExpressionA sql expression to visit.
allowOptimizedExpansionboolA bool value indicating if optimized expansion which considers null value as false value is allowed.
nullableboolA 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
iLikeExpressionPgILikeExpressionallowOptimizedExpansionboolnullablebool
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
jsonTraversalExpressionPgJsonTraversalExpressionallowOptimizedExpansionboolnullablebool
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
newArrayExpressionPgNewArrayExpressionallowOptimizedExpansionboolnullablebool
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
binaryExpressionPgBinaryExpressionallowOptimizedExpansionboolnullablebool
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
regexMatchExpressionPgRegexMatchExpressionallowOptimizedExpansionboolnullablebool
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
rowValueExpressionPgRowValueExpressionallowOptimizedExpansionboolnullablebool
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
sqlBinaryExpressionSqlBinaryExpressionA sql binary expression to visit.
allowOptimizedExpansionboolA bool value indicating if optimized expansion which considers null value as false value is allowed.
nullableboolA 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
sqlFunctionExpressionSqlFunctionExpressionallowOptimizedExpansionboolnullablebool
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
unknownBinaryExpressionPgUnknownBinaryExpressionA PgUnknownBinaryExpression expression to visit.
allowOptimizedExpansionboolA bool value indicating if optimized expansion which considers null value as false value is allowed.
nullableboolA bool value indicating whether the sql expression is nullable.
Returns
- SqlExpression
An optimized sql expression.