Sdílet prostřednictvím


MigrationsSqlGenerator.DefaultValue Metoda

Definice

Přetížení

DefaultValue(Object, String, MigrationCommandListBuilder)

Vygeneruje fragment SQL pro výchozí omezení sloupce.

DefaultValue(Object, String, String, MigrationCommandListBuilder)

Vygeneruje fragment SQL pro výchozí omezení sloupce.

DefaultValue(Object, String, MigrationCommandListBuilder)

Vygeneruje fragment SQL pro výchozí omezení sloupce.

protected virtual void DefaultValue (object defaultValue, string defaultValueSql, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member DefaultValue : obj * string * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.DefaultValue : obj * string * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub DefaultValue (defaultValue As Object, defaultValueSql As String, builder As MigrationCommandListBuilder)

Parametry

defaultValue
Object

Výchozí hodnota sloupce.

defaultValueSql
String

Výraz SQL, který se má použít pro výchozí omezení sloupce.

builder
MigrationCommandListBuilder

Tvůrce příkazů, který se má použít k přidání fragmentu SQL.

Platí pro

DefaultValue(Object, String, String, MigrationCommandListBuilder)

Vygeneruje fragment SQL pro výchozí omezení sloupce.

protected virtual void DefaultValue (object defaultValue, string defaultValueSql, string columnType, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected virtual void DefaultValue (object? defaultValue, string? defaultValueSql, string? columnType, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
abstract member DefaultValue : obj * string * string * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
override this.DefaultValue : obj * string * string * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable Sub DefaultValue (defaultValue As Object, defaultValueSql As String, columnType As String, builder As MigrationCommandListBuilder)

Parametry

defaultValue
Object

Výchozí hodnota sloupce.

defaultValueSql
String

Výraz SQL, který se má použít pro výchozí omezení sloupce.

columnType
String

Typ úložiště nebo databáze sloupce.

builder
MigrationCommandListBuilder

Tvůrce příkazů, který se má použít k přidání fragmentu SQL.

Platí pro