RelationalPropertyExtensions.SetColumnType Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
| SetColumnType(IMutableProperty, String) |
Özelliğin eşlendiği sütunun veritabanı türünü ayarlar. |
| SetColumnType(IConventionProperty, String, Boolean) |
Özelliğin eşlenmiş olduğu sütunun veritabanı türünü ayarlar. |
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
SetColumnType(IConventionProperty, String, Boolean)
Özelliğin eşlenmiş olduğu 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 veri ek açıklaması kullanılarak belirtilmemiş olup olmadığını gösterir.
Döndürülenler
Yapılandırılan değer.