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)); }
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); }