OptionalNavigationPropertyConfiguration(Of TEntityType, TTargetEntityType) Class
Entity Framework 5.0
Configures an optional relationship from an entity type.
System.Object
System.Data.Entity.ModelConfiguration.Configuration.OptionalNavigationPropertyConfiguration(Of TEntityType, TTargetEntityType)
System.Data.Entity.ModelConfiguration.Configuration.OptionalNavigationPropertyConfiguration(Of TEntityType, TTargetEntityType)
Namespace: System.Data.Entity.ModelConfiguration.Configuration
Assembly: EntityFramework (in EntityFramework.dll)
'Declaration Public Class OptionalNavigationPropertyConfiguration(Of TEntityType As Class, TTargetEntityType As Class) 'Usage Dim instance As OptionalNavigationPropertyConfiguration(Of TEntityType, TTargetEntityType)
Type Parameters
- TEntityType
The entity type that the relationship originates from.
- TTargetEntityType
The entity type that the relationship targets.
The OptionalNavigationPropertyConfiguration(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 optional: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 optional:many with a navigation property on the other side of the relationship. |
![]() | WithOptionalDependent | Configures the relationship to be optional:optional 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. |
![]() | WithOptionalDependent(Expression(Of Func(Of TTargetEntityType, TEntityType))) | Configures the relationship to be optional:optional 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. |
![]() | WithOptionalPrincipal | Configures the relationship to be optional:optional 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. |
![]() | WithOptionalPrincipal(Expression(Of Func(Of TTargetEntityType, TEntityType))) | Configures the relationship to be optional:optional 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. |
![]() | WithRequired | Configures the specified end of the relationship to be required without a navigation property on the other side of the relationship. |
![]() | WithRequired(Expression(Of Func(Of TTargetEntityType, TEntityType))) | Configures the specified end of the relationship to be required with a navigation property on the other side of the relationship. |
Show:
