Udostępnij za pośrednictwem


RelationalPropertyExtensions.SetColumnType Metoda

Definicja

Przeciążenia

SetColumnType(IConventionProperty, String, Boolean)

Ustawia typ bazy danych kolumny, do której jest mapowana właściwość.

SetColumnType(IMutableProperty, String)

Ustawia typ bazy danych kolumny, do której jest mapowana właściwość.

SetColumnType(IConventionProperty, String, Boolean)

Ustawia typ bazy danych kolumny, do której jest mapowana właściwość.

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

Parametry

property
IConventionProperty

Właściwość.

value
String

Wartość do ustawienia.

fromDataAnnotation
Boolean

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

Zwraca

Skonfigurowana wartość.

Dotyczy

SetColumnType(IMutableProperty, String)

Ustawia typ bazy danych kolumny, do której jest mapowana właściwość.

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

Parametry

property
IMutableProperty

Właściwość.

value
String

Wartość do ustawienia.

Dotyczy