OptionalNavigationPropertyConfiguration<TEntityType, TTargetEntityType>.WithRequired Method

Configures the specified end of the relationship to be required.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method WithRequired() Configures the specified end of the relationship to be required without a navigation property on the other side of the relationship.
Public method WithRequired(Expression<Func<TTargetEntityType, TEntityType>>) Configures the specified end of the relationship to be required with a navigation property on the other side of the relationship.
Top
Show: