Delen via


ValueConverter.ConvertsNulls Property

Definition

If true, then the nulls will be passed to the converter for conversion. Otherwise null values always remain null.

public virtual bool ConvertsNulls { get; }
member this.ConvertsNulls : bool
Public Overridable ReadOnly Property ConvertsNulls As Boolean

Property Value

Remarks

By default, value converters do not handle nulls so that a value converter for a non-nullable property (such as a primary key) can be used for correlated nullable properties, such as any corresponding foreign key properties.

See EF Core value converters for more information and examples.

Applies to