RequiredNavigationPropertyConfiguration(Of TEntityType, TTargetEntityType) Class
Entity Framework 5.0
Configures a required relationship from an entity type.
System.Object
System.Data.Entity.ModelConfiguration.Configuration.RequiredNavigationPropertyConfiguration(Of TEntityType, TTargetEntityType)
System.Data.Entity.ModelConfiguration.Configuration.RequiredNavigationPropertyConfiguration(Of TEntityType, TTargetEntityType)
Namespace: System.Data.Entity.ModelConfiguration.Configuration
Assembly: EntityFramework (in EntityFramework.dll)
'Declaration Public Class RequiredNavigationPropertyConfiguration(Of TEntityType As Class, TTargetEntityType As Class) 'Usage Dim instance As RequiredNavigationPropertyConfiguration(Of TEntityType, TTargetEntityType)
Type Parameters
- TEntityType
The entity type that the relationship originates from.
- TTargetEntityType
The entity type that the relationship targets.
The RequiredNavigationPropertyConfiguration(Of TEntityType, TTargetEntityType) type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Equals | Determines whether the specified object is equal to the current object. This method is hidden from IntelliSense. (Overrides Object.Equals(Object).) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. This method is hidden from IntelliSense. (Overrides Object.GetHashCode.) |
![]() | GetType | Gets the type of the current instance. This method is hidden from IntelliSense. |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. This method is hidden from IntelliSense. (Overrides Object.ToString.) |
![]() | WithMany | Configures the relationship to be required:many without a navigation property on the other side of the relationship. |
![]() | WithMany(Expression(Of Func(Of TTargetEntityType, ICollection(Of TEntityType)))) | Configures the relationship to be required:many with a navigation property on the other side of the relationship. |
![]() | WithOptional | Configures the relationship to be required:optional without a navigation property on the other side of the relationship. |
![]() | WithOptional(Expression(Of Func(Of TTargetEntityType, TEntityType))) | Configures the relationship to be required:optional with a navigation property on the other side of the relationship. |
![]() | WithRequiredDependent | Configures the relationship to be required:required without a navigation property on the other side of the relationship. The entity type being configured will be the dependent and contain a foreign key to the principal. The entity type that the relationship targets will be the principal in the relationship. |
![]() | WithRequiredDependent(Expression(Of Func(Of TTargetEntityType, TEntityType))) | Configures the relationship to be required:required with a navigation property on the other side of the relationship. The entity type being configured will be the dependent and contain a foreign key to the principal. The entity type that the relationship targets will be the principal in the relationship. |
![]() | WithRequiredPrincipal | Configures the relationship to be required:required without a navigation property on the other side of the relationship. The entity type being configured will be the principal in the relationship. The entity type that the relationship targets will be the dependent and contain a foreign key to the principal. |
![]() | WithRequiredPrincipal(Expression(Of Func(Of TTargetEntityType, TEntityType))) | Configures the relationship to be required:required with a navigation property on the other side of the relationship. The entity type being configured will be the principal in the relationship. The entity type that the relationship targets will be the dependent and contain a foreign key to the principal. |
Show:
