Share via


ConventionPropertyExtensions.SetProviderClrType Methode

Definition

Legt den Typ fest, in den der Eigenschaftswert konvertiert wird, bevor er an den Datenbankanbieter gesendet wird.

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

Parameter

property
IConventionProperty

Die Eigenschaft.

providerClrType
Type

Der Typ, der verwendet werden soll oder null ein zuvor festgelegter Typ entfernt werden soll.

fromDataAnnotation
Boolean

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

Gibt zurück

Der konfigurierte Wert.

Gilt für: