Partilhar via


MutablePropertyExtensions.SetValueConverter Método

Definição

Define o personalizado ValueConverter para essa propriedade.

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)

Parâmetros

property
IMutableProperty

A propriedade.

converter
ValueConverter

O conversor ou null para remover qualquer conversor definido anteriormente.

Aplica-se a