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 删除任何以前设置的转换器。

适用于