Compartir a través de


Clase SqlScriptGeneratorOptions

Controls the options for Sql Script Generation.

Jerarquía de herencia

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

Espacio de nombres:  Microsoft.SqlServer.TransactSql.ScriptDom
Ensamblado:  Microsoft.SqlServer.TransactSql.ScriptDom (en Microsoft.SqlServer.TransactSql.ScriptDom.dll)

Sintaxis

'Declaración
Public Class SqlScriptGeneratorOptions
'Uso
Dim instance As SqlScriptGeneratorOptions
public class SqlScriptGeneratorOptions
public ref class SqlScriptGeneratorOptions
type SqlScriptGeneratorOptions =  class end
public class SqlScriptGeneratorOptions

El tipo SqlScriptGeneratorOptions expone los siguientes miembros.

Constructores

  Nombre Descripción
Método público SqlScriptGeneratorOptions Initializes a new instance of the SqlScriptGeneratorOptions class.

Arriba

Propiedades

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

Arriba

Métodos

  Nombre Descripción
Método público Equals (Se hereda de Object.)
Método protegido Finalize (Se hereda de Object.)
Método público GetHashCode (Se hereda de Object.)
Método público GetType (Se hereda de Object.)
Método protegido MemberwiseClone (Se hereda de Object.)
Método público Reset Resets the options to their default value.
Método público ToString (Se hereda de Object.)

Arriba

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Vea también

Referencia

Espacio de nombres Microsoft.SqlServer.TransactSql.ScriptDom