OptionalNavigationPropertyConfiguration<TEntityType, TTargetEntityType> Class
Configures an optional relationship from an entity type.
Assembly: EntityFramework (in EntityFramework.dll)
System.Data.Entity.ModelConfiguration.Configuration.OptionalNavigationPropertyConfiguration<TEntityType, TTargetEntityType>
Name | Description | |
---|---|---|
![]() | Equals(Object) | Determines whether the specified object is equal to the current object.(Overrides Object.Equals(Object).) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | Serves as a hash function for a particular type.(Overrides Object.GetHashCode().) |
![]() | GetType() | Gets the Type of the current instance. |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | Returns a string that represents the current object.(Overrides Object.ToString().) |
![]() | WithMany() | Configures the relationship to be optional:many without a navigation property on the other side of the relationship. |
![]() | WithMany(Expression<Func<TTargetEntityType, ICollection<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<Func<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<Func<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 relationship to be optional:required without a navigation property on the other side of the relationship. |
![]() | WithRequired(Expression<Func<TTargetEntityType, TEntityType>>) | Configures the relationship to be optional:required with a navigation property on the other side of the relationship. |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.