ValueConverter.ConvertsNulls Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework