RelationalPropertyExtensions.SetColumnType Methode

Definition

Überlädt

SetColumnType(IConventionProperty, String, Boolean)

Legt den Datenbanktyp der Spalte fest, der die -Eigenschaft zugeordnet ist.

SetColumnType(IMutableProperty, String)

Legt den Datenbanktyp der Spalte fest, der die -Eigenschaft zugeordnet ist.

SetColumnType(IConventionProperty, String, Boolean)

Legt den Datenbanktyp der Spalte fest, der die -Eigenschaft zugeordnet ist.

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

Parameter

property
IConventionProperty

Die Eigenschaft.

value
String

Der festzulegende Wert.

fromDataAnnotation
Boolean

Gibt an, ob die Konfiguration mithilfe einer Datenanmerkung angegeben wurde.

Gibt zurück

Der konfigurierte Wert.

Gilt für:

SetColumnType(IMutableProperty, String)

Legt den Datenbanktyp der Spalte fest, der die -Eigenschaft zugeordnet ist.

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)

Parameter

property
IMutableProperty

Die Eigenschaft.

value
String

Der festzulegende Wert.

Gilt für: