Share via


MigrationsSqlGenerator.DefaultValue Metodo

Definizione

Overload

DefaultValue(Object, String, MigrationCommandListBuilder)

Genera un frammento SQL per il vincolo predefinito di una colonna.

DefaultValue(Object, String, String, MigrationCommandListBuilder)

Genera un frammento SQL per il vincolo predefinito di una colonna.

DefaultValue(Object, String, MigrationCommandListBuilder)

Genera un frammento SQL per il vincolo predefinito di una colonna.

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)

Parametri

defaultValue
Object

Il valore predefinito per la colonna.

defaultValueSql
String

Espressione SQL da usare per il vincolo predefinito della colonna.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per aggiungere il frammento SQL.

Si applica a

DefaultValue(Object, String, String, MigrationCommandListBuilder)

Genera un frammento SQL per il vincolo predefinito di una colonna.

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)

Parametri

defaultValue
Object

Il valore predefinito per la colonna.

defaultValueSql
String

Espressione SQL da usare per il vincolo predefinito della colonna.

columnType
String

Tipo di archivio/database della colonna.

builder
MigrationCommandListBuilder

Generatore di comandi da usare per aggiungere il frammento SQL.

Si applica a