Partager via


Classe SqlScriptGeneratorOptions

Controls the options for Sql Script Generation.

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.TransactSql.ScriptDom
Assembly :  Microsoft.SqlServer.TransactSql.ScriptDom (en Microsoft.SqlServer.TransactSql.ScriptDom.dll)

Syntaxe

'Déclaration
Public Class SqlScriptGeneratorOptions
'Utilisation
Dim instance As SqlScriptGeneratorOptions
public class SqlScriptGeneratorOptions
public ref class SqlScriptGeneratorOptions
type SqlScriptGeneratorOptions =  class end
public class SqlScriptGeneratorOptions

Le type SqlScriptGeneratorOptions expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique SqlScriptGeneratorOptions Initializes a new instance of the SqlScriptGeneratorOptions class.

Haut de la page

Propriétés

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

Haut de la page

Méthodes

  Nom Description
Méthode publique Equals (hérité de Object.)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetType (hérité de Object.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique Reset Resets the options to their default value.
Méthode publique ToString (hérité de Object.)

Haut de la page

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.TransactSql.ScriptDom