Share via


ComplexTypePropertyBuilder.HasSentinel(Object) Method

Definition

Configures the value that will be used to determine if the property has been set or not. If the property is set to the sentinel value, then it is considered not set. By default, the sentinel value is the CLR default value for the type of the property.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder HasSentinel (object? sentinel);
abstract member HasSentinel : obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder
override this.HasSentinel : obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder
Public Overridable Function HasSentinel (sentinel As Object) As ComplexTypePropertyBuilder

Parameters

sentinel
Object

The sentinel value.

Returns

The same builder instance if the configuration was applied, null otherwise.

Applies to