共用方式為


SqlServerMigrationsSqlGenerator.AddDescription 方法

定義

針對資料表和資料行的描述產生新增命令。

protected virtual void AddDescription (Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, string description, string schema, string table, string column = default, bool omitSchemaVariable = false);
protected virtual void AddDescription (Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, string description, string schema, string table, string column = default, bool omitVariableDeclarations = false);
protected virtual void AddDescription (Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder, string description, string? schema, string table, string? column = default, bool omitVariableDeclarations = false);
abstract member AddDescription : Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * string * string * string * string * bool -> unit
override this.AddDescription : Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * string * string * string * string * bool -> unit
abstract member AddDescription : Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * string * string * string * string * bool -> unit
override this.AddDescription : Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder * string * string * string * string * bool -> unit
Protected Overridable Sub AddDescription (builder As MigrationCommandListBuilder, description As String, schema As String, table As String, Optional column As String = Nothing, Optional omitSchemaVariable As Boolean = false)
Protected Overridable Sub AddDescription (builder As MigrationCommandListBuilder, description As String, schema As String, table As String, Optional column As String = Nothing, Optional omitVariableDeclarations As Boolean = false)

參數

builder
MigrationCommandListBuilder

用來建置命令的命令產生器。

description
String

要套用的新描述。

schema
String

資料表的結構描述。

table
String

資料表的名稱。

column
String

資料行名稱。

omitSchemaVariableomitVariableDeclarations
Boolean

指出是否 @defaultSchema 應該省略變數宣告。

適用於