Język

RelationalPropertyExtensions.SetDefaultValueSql Metoda

Definicja

Przeciążenia

Nazwisko Opis
SetDefaultValueSql(IConventionProperty, String, Boolean)

Ustawia wyrażenie SQL, które jest używane jako wartość domyślna dla kolumny, na którą jest mapowana ta właściwość.

SetDefaultValueSql(IMutableProperty, String)

Ustawia wyrażenie SQL, które jest używane jako wartość domyślna dla kolumny, na którą jest mapowana ta właściwość.

SetDefaultValueSql(IConventionProperty, String, Boolean)

Źródło:
RelationalPropertyExtensions.cs
Źródło:
RelationalPropertyExtensions.cs
Źródło:
RelationalPropertyExtensions.cs
Źródło:
RelationalPropertyExtensions.cs
Źródło:
RelationalPropertyExtensions.cs
Źródło:
RelationalPropertyExtensions.cs
Źródło:
RelationalPropertyExtensions.cs
Źródło:
RelationalPropertyExtensions.cs
Źródło:
RelationalPropertyExtensions.cs

Ustawia wyrażenie SQL, które jest używane jako wartość domyślna dla kolumny, na którą jest mapowana ta właściwość.

public static string? SetDefaultValueSql(this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string? value, bool fromDataAnnotation = false);
public static void SetDefaultValueSql(this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string value, bool fromDataAnnotation = false);
public static string SetDefaultValueSql(this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string value, bool fromDataAnnotation = false);
static member SetDefaultValueSql : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> string
static member SetDefaultValueSql : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> unit
<Extension()>
Public Function SetDefaultValueSql (property As IConventionProperty, value As String, Optional fromDataAnnotation As Boolean = false) As String
<Extension()>
Public Sub SetDefaultValueSql (property As IConventionProperty, value As String, Optional fromDataAnnotation As Boolean = false)

Parametry

property
IConventionProperty

Właściwość.

value
String

Wartość, która ma zostać ustawiona.

fromDataAnnotation
Boolean

Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.

Zwraca

Skonfigurowana wartość.

Dotyczy

SetDefaultValueSql(IMutableProperty, String)

Źródło:
RelationalPropertyExtensions.cs
Źródło:
RelationalPropertyExtensions.cs
Źródło:
RelationalPropertyExtensions.cs
Źródło:
RelationalPropertyExtensions.cs
Źródło:
RelationalPropertyExtensions.cs
Źródło:
RelationalPropertyExtensions.cs
Źródło:
RelationalPropertyExtensions.cs
Źródło:
RelationalPropertyExtensions.cs
Źródło:
RelationalPropertyExtensions.cs

Ustawia wyrażenie SQL, które jest używane jako wartość domyślna dla kolumny, na którą jest mapowana ta właściwość.

public static void SetDefaultValueSql(this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string? value);
public static void SetDefaultValueSql(this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string value);
static member SetDefaultValueSql : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> unit
<Extension()>
Public Sub SetDefaultValueSql (property As IMutableProperty, value As String)

Parametry

property
IMutableProperty

Właściwość.

value
String

Wartość, która ma zostać ustawiona.

Dotyczy