Udostępnij za pośrednictwem


RelationalElementTypeExtensions.SetStoreType Metoda

Definicja

Przeciążenia

SetStoreType(IMutableElementType, String)

Ustawia typ bazy danych elementów.

SetStoreType(IConventionElementType, String, Boolean)

Ustawia typ bazy danych elementów.

SetStoreType(IMutableElementType, String)

Ustawia typ bazy danych elementów.

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

Parametry

elementType
IMutableElementType

Element .

value
String

Wartość do ustawienia.

Dotyczy

SetStoreType(IConventionElementType, String, Boolean)

Ustawia typ bazy danych elementów.

public static string? SetStoreType (this Microsoft.EntityFrameworkCore.Metadata.IConventionElementType elementType, string? value, bool fromDataAnnotation = false);
static member SetStoreType : Microsoft.EntityFrameworkCore.Metadata.IConventionElementType * string * bool -> string
<Extension()>
Public Function SetStoreType (elementType As IConventionElementType, value As String, Optional fromDataAnnotation As Boolean = false) As String

Parametry

elementType
IConventionElementType

Element .

value
String

Wartość do ustawienia.

fromDataAnnotation
Boolean

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

Zwraca

Skonfigurowana wartość.

Dotyczy