Exemplo n.º 1
0
        public String ToSqlString(AggregateProjection aggregateProjection)
        {
            ISQLFunction func = _factory.Dialect.FindFunction(aggregateProjection.FunctionName);

            if (func == null)
            {
                // TODO throw an exception
                throw new MappingException("Function not found");
            }
            return(Alias(func.Render(aggregateProjection.BuildFunctionParameterList(this), _factory as IConnectionFactory), aggregateProjection.Alias));
        }
Exemplo n.º 2
0
 public String ToSqlString(AggregateProjection aggregateProjection)
 {
     ISQLFunction func = _factory.Dialect.FindFunction(aggregateProjection.FunctionName);
     if (func == null)
         // TODO throw an exception
         throw new MappingException("Function not found");
     return Alias(func.Render(aggregateProjection.BuildFunctionParameterList(this), _factory as IConnectionFactory), aggregateProjection.Alias);
 }