예제 #1
0
        public static SqlBuilder.Template LogQuery(this SqlBuilder.Template template)
        {
            if (LogSql)
            {
                LogQuery(template.RawSql, (DynamicParameters)template.Parameters);
            }

            return(template);
        }
예제 #2
0
        public static SqlBuilder.Template LogQuery(this SqlBuilder.Template template)
        {
            if (LogSql)
            {
                Logger.Trace(GetSqlLogString(template.RawSql, template.Parameters));
            }

            return(template);
        }