NavigationBuilder.IsRequired(Boolean) Method

Definition

Configures whether this navigation is required.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder IsRequired (bool required = true);
abstract member IsRequired : bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder
override this.IsRequired : bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.NavigationBuilder
Public Overridable Function IsRequired (Optional required As Boolean = true) As NavigationBuilder

Parameters

required
Boolean

A value indicating whether the navigation should be required.

Returns

The same builder instance so that multiple configuration calls can be chained.

Applies to