共用方式為


SqlServerMigrationSqlGenerator.Writer 方法

定義

取得可用來建置 SQL 的新 IndentedTextWriter

這只是建立寫入器的協助程式方法。 寫入寫入寫入器不會讓 SQL 註冊執行。 您必須將產生的 SQL 傳遞至 Statement 方法。

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope")]
protected static System.Data.Entity.Migrations.Utilities.IndentedTextWriter Writer();
static member Writer : unit -> System.Data.Entity.Migrations.Utilities.IndentedTextWriter
Protected Shared Function Writer () As IndentedTextWriter

傳回

用於產生 SQL 的空白文字寫入器。

屬性

適用於