Język

RelationalPropertyExtensions.SetDefaultValue Metoda

Definicja

Przeciążenia

Nazwisko Opis
SetDefaultValue(IMutableProperty, Object)

Ustawia obiekt, który jest używany jako wartość domyślna dla kolumny, na którą jest mapowana ta właściwość.

SetDefaultValue(IConventionProperty, Object, Boolean)

Ustawia obiekt, który jest używany jako wartość domyślna dla kolumny, na którą jest mapowana ta właściwość.

SetDefaultValue(IMutableProperty, Object)

Ź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 obiekt, który jest używany jako wartość domyślna dla kolumny, na którą jest mapowana ta właściwość.

public static void SetDefaultValue(this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, object? value);
public static void SetDefaultValue(this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, object value);
static member SetDefaultValue : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * obj -> unit
<Extension()>
Public Sub SetDefaultValue (property As IMutableProperty, value As Object)

Parametry

property
IMutableProperty

Właściwość.

value
Object

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

Dotyczy

SetDefaultValue(IConventionProperty, Object, 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 obiekt, który jest używany jako wartość domyślna dla kolumny, na którą jest mapowana ta właściwość.

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

Parametry

property
IConventionProperty

Właściwość.

value
Object

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

fromDataAnnotation
Boolean

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

Zwraca

Skonfigurowana wartość.

Dotyczy