Fix() public static method

public static Fix ( Expression expression ) : Expression
expression System.Linq.Expressions.Expression
return System.Linq.Expressions.Expression
Ejemplo n.º 1
0
        protected override Expression PreProcess(Expression expression)
        {
            expression = SqlServerSubqueryOrderByFixer.Fix(expression);
            expression = SqlServerLimitAmender.Amend(expression);
            expression = SqlServerBooleanNormalizer.Normalize(expression);
            expression = SqlServerDateTimeFunctionsAmender.Amend(expression);
            expression = SqlServerUniqueNullIndexAnsiComplianceFixer.Fix(expression);

            return(base.PreProcess(expression));
        }
Ejemplo n.º 2
0
        protected override Expression PreProcess(Expression expression)
        {
            expression = SqlServerIdentityInsertAndUpdateAmender.Amend(this.typeDescriptorProvider, expression);
            expression = SqlServerSubqueryOrderByFixer.Fix(expression);
            expression = SqlServerLimitAmender.Amend(expression);
            expression = SqlServerBooleanNormalizer.Normalize(expression);
            expression = SqlServerDateTimeFunctionsAmender.Amend(expression);
            expression = SqlServerUniqueNullIndexAnsiComplianceFixer.Fix(expression);

            return(base.PreProcess(expression));
        }
        protected override Expression PreProcess(Expression expression)
        {
            expression = SqlServerClusteredIndexNormalizer.Normalize(expression);
            expression = SqlServerIdentityInsertAndUpdateAmender.Amend(this.typeDescriptorProvider, expression);
            expression = SqlServerSubqueryOrderByFixer.Fix(expression);
            expression = SqlServerLimitAmender.Amend(expression);
            expression = SqlServerUniqueNullIndexAnsiComplianceFixer.Fix(this.typeDescriptorProvider, expression, this.contextInfo.UniqueNullIndexAnsiComplianceFixerClassicBehaviour, this.contextInfo.ExplicitIndexConditionOverridesNullAnsiCompliance);
            expression = SqlServerDateTimeFunctionsAmender.Amend(expression);
            expression = SqlServerAggregateTypeFixer.Fix(expression);
            expression = SqlServerBooleanNormalizer.Normalize(expression);

            return(base.PreProcess(expression));
        }