Compartir a través de


MigrationsSqlGenerator.DefaultValue Método

Definición

Sobrecargas

DefaultValue(Object, String, MigrationCommandListBuilder)

Genera un fragmento de SQL para la restricción predeterminada de una columna.

DefaultValue(Object, String, String, MigrationCommandListBuilder)

Genera un fragmento de SQL para la restricción predeterminada de una columna.

DefaultValue(Object, String, MigrationCommandListBuilder)

Source:
MigrationsSqlGenerator.cs
Source:
MigrationsSqlGenerator.cs

Genera un fragmento de SQL para la restricción predeterminada de una columna.

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)

Parámetros

defaultValue
Object

El valor predeterminado de la columna.

defaultValueSql
String

Expresión SQL que se va a usar para la restricción predeterminada de la columna.

builder
MigrationCommandListBuilder

Generador de comandos que se va a usar para agregar el fragmento de SQL.

Se aplica a

DefaultValue(Object, String, String, MigrationCommandListBuilder)

Source:
MigrationsSqlGenerator.cs
Source:
MigrationsSqlGenerator.cs
Source:
MigrationsSqlGenerator.cs
Source:
MigrationsSqlGenerator.cs
Source:
MigrationsSqlGenerator.cs
Source:
MigrationsSqlGenerator.cs
Source:
MigrationsSqlGenerator.cs

Genera un fragmento de SQL para la restricción predeterminada de una columna.

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)

Parámetros

defaultValue
Object

El valor predeterminado de la columna.

defaultValueSql
String

Expresión SQL que se va a usar para la restricción predeterminada de la columna.

columnType
String

Tipo de almacén o base de datos de la columna.

builder
MigrationCommandListBuilder

Generador de comandos que se va a usar para agregar el fragmento de SQL.

Se aplica a