Пример #1
0
 public static void CreatedExpressionTreeForModel(this ILogger logger, Type model, string procedureName, Expression codeBlock)
 {
     if (logger.IsEnabled(LogLevel.Information))
     {
         using (System.IO.StringWriter writer = new System.IO.StringWriter(CultureInfo.CurrentCulture))
         {
             DebugViewWriter.WriteTo(codeBlock, writer);
             _sqlObjectExpressionTreeCreation(logger, model.ToString(), procedureName, writer.ToString(), null);
         }
     }
 }
Пример #2
0
 public static void CreatedExpressionTreeForReaderRowData(this ILogger logger, Type model, Expression codeBlock)
 {
     if (logger.IsEnabled(LogLevel.Information))
     {
         using (System.IO.StringWriter writer = new System.IO.StringWriter(CultureInfo.CurrentCulture))
         {
             DebugViewWriter.WriteTo(codeBlock, writer);
             _sqlReaderExpressionTreeDataRowCreation(logger, model.ToString(), writer.ToString(), null);
         }
     }
 }
Пример #3
0
 /// <summary>
 /// Writes a <see cref="String"/> representation of the <see cref="Expression"/> to a <see cref="TextWriter"/>.
 /// </summary>
 /// <param name="writer">A <see cref="TextWriter"/> that will be used to build the string representation.</param>
 public void DumpExpression(TextWriter writer)
 {
     DebugViewWriter.WriteTo(this, writer);
 }