Condividi tramite


Classe SqlScriptGeneratorOptions

Controls the options for Sql Script Generation.

Gerarchia di ereditarietà

System.Object
  Microsoft.SqlServer.TransactSql.ScriptDom.SqlScriptGeneratorOptions

Spazio dei nomi  Microsoft.SqlServer.TransactSql.ScriptDom
Assembly:  Microsoft.SqlServer.TransactSql.ScriptDom (in Microsoft.SqlServer.TransactSql.ScriptDom.dll)

Sintassi

'Dichiarazione
Public Class SqlScriptGeneratorOptions
'Utilizzo
Dim instance As SqlScriptGeneratorOptions
public class SqlScriptGeneratorOptions
public ref class SqlScriptGeneratorOptions
type SqlScriptGeneratorOptions =  class end
public class SqlScriptGeneratorOptions

Nel tipo SqlScriptGeneratorOptions sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico SqlScriptGeneratorOptions Initializes a new instance of the SqlScriptGeneratorOptions class.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica AlignClauseBodies Gets or sets a value that indicates whether the bodies of FROM, WHERE, GROUP BY, clauses are aligned.
Proprietà pubblica AlignColumnDefinitionFields Gets or sets a value that indicates whether column definition fields (column name, data type, constraints) are aligned into alignment columns.
Proprietà pubblica AlignSetClauseItem Gets or sets a value that indicates whether the SET clause items in an UPDATE statement is aligned.
Proprietà pubblica AsKeywordOnOwnLine Gets or sets a value that indicates whether the AS keyword is written on its own line.
Proprietà pubblica IncludeSemicolons Gets or sets a value that indicates whether a semi colon is included after each statement.
Proprietà pubblica IndentationSize Gets or sets the number of spaces to use when indenting text.
Proprietà pubblica IndentSetClause Gets or sets a value that indicates whether the SET clause for an UPDATE statement is indented.
Proprietà pubblica IndentViewBody Gets or sets a value that indicates whether the view statement body is indented.
Proprietà pubblica KeywordCasing Gets or sets the keyword casing option to use during script generation.
Proprietà pubblica MultilineInsertSourcesList Gets or sets a value that indicates whether the INSERT column sources list is spread across multiple lines.
Proprietà pubblica MultilineInsertTargetsList Gets or sets a value that indicates whether the INSERT column targets list is spread across multiple lines.
Proprietà pubblica MultilineSelectElementsList Gets or sets a value that indicates whether select elements are listed as multi-line list.
Proprietà pubblica MultilineSetClauseItems Gets or sets a value that indicates whether the SET clause items are listed on multiple lines.
Proprietà pubblica MultilineViewColumnsList Gets or sets a value that indicates whether the view statement columns are listed as a multi-line list.
Proprietà pubblica MultilineWherePredicatesList Gets or sets a value that indicates whether WHERE predicates (expressions separated by AND, and OR) are written on multiple lines.
Proprietà pubblica NewLineBeforeCloseParenthesisInMultilineList Gets or sets a value that indicates whether a newline is placed before a close parenthesis when writing a multi-line list in parenthesis.
Proprietà pubblica NewLineBeforeFromClause Gets or sets a value that indicates whether a newline exists before the FROM clause in a SELECT statement.
Proprietà pubblica NewLineBeforeGroupByClause Gets or sets a value that indicates whether a newline exists before the GROUP BY clause in a SELECT statement.
Proprietà pubblica NewLineBeforeHavingClause Gets or sets a value that indicates whether a newline exists before the HAVING clause in a SELECT statement.
Proprietà pubblica NewLineBeforeJoinClause Gets or sets a value that indicates whether a newline exists before the JOIN clause in a SELECT statement.
Proprietà pubblica NewLineBeforeOffsetClause Gets or sets a value that indicates whether a newline exists before the OFFSET clause.
Proprietà pubblica NewLineBeforeOpenParenthesisInMultilineList Gets or sets a value that indicates whether a newline is placed before an open parenthesis when writing a multi-line list in parenthesis.
Proprietà pubblica NewLineBeforeOrderByClause Gets or sets a value that indicates whether a newline exists before the ORDER BY clause in a SELECT statement.
Proprietà pubblica NewLineBeforeOutputClause Gets or sets a value that indicates whether a newline exists before the OUTPUT clause.
Proprietà pubblica NewLineBeforeWhereClause Gets or sets a value that indicates whether a newline exists before the WHERE clause in a SELECT statement.
Proprietà pubblica SqlVersion Gets or sets the Sql version to generate script for.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Equals Ereditato da Object.
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetType Ereditato da Object.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico Reset Resets the options to their default value.
Metodo pubblico ToString Ereditato da Object.

In alto

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.TransactSql.ScriptDom