共用方式為


SqlScriptGeneratorOptions 類別

Controls the options for Sql Script Generation.

繼承階層

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

命名空間:  Microsoft.SqlServer.TransactSql.ScriptDom
組件:  Microsoft.SqlServer.TransactSql.ScriptDom (在 Microsoft.SqlServer.TransactSql.ScriptDom.dll 中)

語法

'宣告
Public Class SqlScriptGeneratorOptions
'用途
Dim instance As SqlScriptGeneratorOptions
public class SqlScriptGeneratorOptions
public ref class SqlScriptGeneratorOptions
type SqlScriptGeneratorOptions =  class end
public class SqlScriptGeneratorOptions

SqlScriptGeneratorOptions 型別公開下列成員。

建構函式

  名稱 說明
公用方法 SqlScriptGeneratorOptions Initializes a new instance of the SqlScriptGeneratorOptions class.

上層

屬性

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

上層

方法

  名稱 說明
公用方法 Equals (繼承自 Object。)
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetType (繼承自 Object。)
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法 Reset Resets the options to their default value.
公用方法 ToString (繼承自 Object。)

上層

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

Microsoft.SqlServer.TransactSql.ScriptDom 命名空間