共用方式為


MutablePropertyExtensions.SetValueConverter 方法

定義

設定此屬性的自訂 ValueConverter

public static void SetValueConverter (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter converter);
static member SetValueConverter : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Microsoft.EntityFrameworkCore.Storage.ValueConversion.ValueConverter -> unit
<Extension()>
Public Sub SetValueConverter (property As IMutableProperty, converter As ValueConverter)

參數

property
IMutableProperty

屬性。

converter
ValueConverter

轉換器,或 null 移除任何先前設定的轉換器。

適用於