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