C# (CSharp) Remotion.Linq.SqlBackend.MappingResolution SqlContextExpressionVisitor - 5 examples found. These are the top rated real world C# (CSharp) examples of Remotion.Linq.SqlBackend.MappingResolution.SqlContextExpressionVisitor extracted from open source projects. You can rate examples to help us improve the quality of examples.
Ensures that a given expression matches SQL server value semantics.
SqlContextExpressionVisitor traverses an expression tree and ensures that the tree fits SQL server requirements for expressions. In scenarios where a value is required as per SQL server standards, boolean expressions are converted to integers using CASE WHEN expressions. In such situations, and constants are converted to 1 and 0 values, and boolean columns are interpreted as integer values. In scenarios where a predicate is required, boolean expressions are constructed by comparing those integer values to 1 and 0 literals. In scenarios where a single value is required, an exception is thrown where compound values (NewExpression) or entities are encountered.