Aracılığıyla paylaş


RelationalPropertyExtensions.SetColumnType Yöntem

Tanım

Aşırı Yüklemeler

SetColumnType(IConventionProperty, String, Boolean)

Özelliğin eşlendiği sütunun veritabanı türünü ayarlar.

SetColumnType(IMutableProperty, String)

Özelliğin eşlendiği sütunun veritabanı türünü ayarlar.

SetColumnType(IConventionProperty, String, Boolean)

Özelliğin eşlendiği sütunun veritabanı türünü ayarlar.

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

Parametreler

property
IConventionProperty

Özellik.

value
String

Ayarlanacak değer.

fromDataAnnotation
Boolean

Yapılandırmanın bir veri ek açıklaması kullanılarak belirtilip belirtilmediğinden emin olun.

Döndürülenler

Yapılandırılan değer.

Şunlara uygulanır

SetColumnType(IMutableProperty, String)

Özelliğin eşlendiği sütunun veritabanı türünü ayarlar.

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)

Parametreler

property
IMutableProperty

Özellik.

value
String

Ayarlanacak değer.

Şunlara uygulanır