Partager via


SqlServerMigrationsSqlGenerator.AddDescription Méthode

Définition

Génère des commandes d’ajout pour les descriptions sur les tables et les colonnes.

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)

Paramètres

builder
MigrationCommandListBuilder

Générateur de commandes à utiliser pour générer les commandes.

description
String

Nouvelle description à appliquer.

schema
String

Schéma de la table.

table
String

Nom de la table.

column
String

Nom de la colonne.

omitSchemaVariableomitVariableDeclarations
Boolean

Indique si la @defaultSchema déclaration de variable doit être omise.

S’applique à