RequiredNavigationPropertyConfiguration<TEntityType, TTargetEntityType> Class

 

Configures an required relationship from an entity type.

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

System.Object
  System.Data.Entity.ModelConfiguration.Configuration.RequiredNavigationPropertyConfiguration<TEntityType, TTargetEntityType>

public class RequiredNavigationPropertyConfiguration<TEntityType, TTargetEntityType>
where TEntityType : class
where TTargetEntityType : class

Type Parameters

TEntityType

The entity type that the relationship originates from.

TTargetEntityType

The entity type that the relationship targets.

NameDescription
System_CAPS_pubmethodEquals(Object)

Specifies whether the specified object is the same as the current object.(Overrides Object.Equals(Object).)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Gets the hash code associated with the current object.(Overrides Object.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string representation of the current object.(Overrides Object.ToString().)

System_CAPS_pubmethodWithMany()

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

System_CAPS_pubmethodWithMany(Expression<Func<TTargetEntityType, ICollection<TEntityType>>>)

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

System_CAPS_pubmethodWithOptional()

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

System_CAPS_pubmethodWithOptional(Expression<Func<TTargetEntityType, TEntityType>>)

Configures the relationship to be required:optional with a navigation property on the other side of the relationship.

System_CAPS_pubmethodWithRequiredDependent()

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.

System_CAPS_pubmethodWithRequiredDependent(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.

System_CAPS_pubmethodWithRequiredPrincipal()

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.

System_CAPS_pubmethodWithRequiredPrincipal(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.