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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för