Example #1
0
 /// <summary>
 /// write a sql log
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="sql"></param>
 /// <param name="parameters"></param>
 public static void LogSql(this ILogger logger, string sql, DbParameter[] parameters)
 {
     SqlLoggerUtil.LogSql(sql, parameters);
 }
Example #2
0
 /// <summary>
 /// write a sql log
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="sql"></param>
 public static void LogSql(this ILogger logger, string sql)
 {
     SqlLoggerUtil.LogSql(sql);
 }