/// <summary> /// Renders query using the current dialect /// </summary> /// <param name="connection">The dialect to use</param> /// <param name="query">The query to render</param> /// <typeparam name="T">The type the query is for</typeparam> /// <returns>The query and arguments</returns> public static KeyValuePair <string, object[]> RenderWhereClause <T>(this IDatabaseDialect dialect, Expression <Func <T, bool> > query) { return(dialect.RenderWhereClause(typeof(T), QueryUtil.FromLambda(query))); }