コード例 #1
0
        public virtual SqlExpression TranslateLongCount([CanBeNull] Expression expression = null)
        {
            if (expression != null)
            {
                // TODO: Translate Count with predicate for GroupBy
                return(null);
            }

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

            return(SqlExpressionFactory.ApplyDefaultTypeMapping(
                       SqlExpressionFactory.Function(
                           "COUNT",
                           new[] { SqlExpressionFactory.Fragment("*") },
                           nullResultAllowed: false,
                           argumentsPropagateNullability: new[] { false },
                           typeof(long))));
        }