/// <summary> /// Renders an element to a string using default debug settings. /// </summary> /// <param name="element">The element to render.</param> /// <returns>String representing the specified element.</returns> internal static string RenderDebug(this ISqlElement element) { var debugContext = new RenderContext(new GenericDialect()); element.Render(debugContext); return(debugContext.CommandText); }
/// <summary> /// Renders the specified element, this is provided for convenience as /// ISqlElements generally implement render explicitly on ISqlElement. /// </summary> /// <param name="element">The element to render.</param> public void Render(ISqlElement element) { element.Render(this); }