Table of Contents

Class SqlFormattingOptions

Namespace
Utils.Data.Sql
Assembly
Utils.Data.dll

Provides formatting configuration for SQL reconstruction.

public sealed class SqlFormattingOptions
Inheritance
SqlFormattingOptions
Inherited Members
Extension Methods

Constructors

SqlFormattingOptions(SqlFormattingMode, int)

Initializes a new instance of the SqlFormattingOptions class.

public SqlFormattingOptions(SqlFormattingMode mode = SqlFormattingMode.Inline, int indentSize = 4)

Parameters

mode SqlFormattingMode

The formatting mode to apply when rebuilding SQL.

indentSize int

The number of spaces used per indentation level.

Properties

Default

Gets the default formatting options (inline mode with an indent size of four spaces).

public static SqlFormattingOptions Default { get; }

Property Value

SqlFormattingOptions

IndentSize

Gets the number of spaces used per indentation level.

public int IndentSize { get; }

Property Value

int

Mode

Gets the formatting mode used for reconstruction.

public SqlFormattingMode Mode { get; }

Property Value

SqlFormattingMode