Share via


RequiredNavigationPropertyConfiguration<TEntityType, TTargetEntityType>.WithMany Method

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

Configures the relationship to be required:many without a navigation property on the other side of the relationship.

Namespace:  System.Data.Entity.ModelConfiguration.Configuration
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
Public Function WithMany As DependentNavigationPropertyConfiguration(Of TEntityType)
'Usage
Dim instance As RequiredNavigationPropertyConfiguration 
Dim returnValue As DependentNavigationPropertyConfiguration(Of TEntityType)

returnValue = instance.WithMany()
public DependentNavigationPropertyConfiguration<TEntityType> WithMany()
public:
DependentNavigationPropertyConfiguration<TEntityType>^ WithMany()
member WithMany : unit -> DependentNavigationPropertyConfiguration<'TEntityType> 
public function WithMany() : DependentNavigationPropertyConfiguration<TEntityType>

Return Value

Type: System.Data.Entity.ModelConfiguration.Configuration.DependentNavigationPropertyConfiguration<TEntityType>
A configuration object that can be used to further configure the relationship.

See Also

Reference

RequiredNavigationPropertyConfiguration<TEntityType, TTargetEntityType> Class

WithMany Overload

System.Data.Entity.ModelConfiguration.Configuration Namespace