Esempio n. 1
0
        /// <summary>
        /// Log command to a logging provider
        /// </summary>
        /// <param name="command"></param>
        private static void Log(this IDbCommand command)
        {
            if (!XyapperManager.EnableLogging)
            {
                return;
            }

            XyapperManager.Logger.Log(XyapperManager.CommandLogLevel, new EventId(), command, null,
                                      (cmd, exception) => CommandLogger.DBCommandToString(cmd));
        }