PropertyBuilder<TProperty>.HasSentinel Method

Definition

Overloads

HasSentinel(Object)

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.

HasSentinel(TProperty)

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.

HasSentinel(Object)

Source:
PropertyBuilder%60.cs
Source:
PropertyBuilder%60.cs

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.PropertyBuilder<TProperty> HasSentinel (object? sentinel);
override this.HasSentinel : obj -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
Public Overridable Function HasSentinel (sentinel As Object) As PropertyBuilder(Of TProperty)

Parameters

sentinel
Object

The sentinel value.

Returns

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

Applies to

HasSentinel(TProperty)

Source:
PropertyBuilder%60.cs

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.PropertyBuilder<TProperty> HasSentinel (TProperty? sentinel);
override this.HasSentinel : 'Property -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
Public Overridable Function HasSentinel (sentinel As TProperty) As PropertyBuilder(Of TProperty)

Parameters

sentinel
TProperty

The sentinel value.

Returns

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

Applies to