語言

PropertyExtensions.GetValueConverter(IProperty) 方法

定義

警告

Use IReadOnlyProperty.GetValueConverter

取得這個屬性的自訂 ValueConverter 設定。

public static Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter GetValueConverter(this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
[System.Obsolete("Use IReadOnlyProperty.GetValueConverter")]
public static Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter? GetValueConverter(this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member GetValueConverter : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter
[<System.Obsolete("Use IReadOnlyProperty.GetValueConverter")>]
static member GetValueConverter : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter
<Extension()>
Public Function GetValueConverter (property As IProperty) As ValueConverter

參數

property
IProperty

屬性。

傳回

轉換器,或者 null 如果沒有設定,也沒設定。

屬性

適用於