public override SqlExpression TranslateLongCount(Expression expression = null) { if (expression != null) { // TODO: Translate Count with predicate for GroupBy return(null); } return(SqlExpressionFactory.ApplyDefaultTypeMapping( SqlExpressionFactory.Function("COUNT_BIG", new[] { SqlExpressionFactory.Fragment("*") }, typeof(long)))); }
public override SqlExpression TranslateLongCount(Expression expression = null) { if (expression != null) { // TODO: Translate Count with predicate for GroupBy return(null); } return(SqlExpressionFactory.ApplyDefaultTypeMapping( SqlExpressionFactory.Function( "COUNT_BIG", new[] { SqlExpressionFactory.Fragment("*") }, nullResultAllowed: true, argumentsPropagateNullability: new[] { false }, typeof(long)))); }