Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

RequiredNavigationPropertyConfiguration<TEntityType, TTargetEntityType> Class

Entity Framework 5.0

Configures a required relationship from an entity type.

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

Namespace:  System.Data.Entity.ModelConfiguration.Configuration
Assembly:  EntityFramework (in EntityFramework.dll)
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.

The RequiredNavigationPropertyConfiguration<TEntityType, TTargetEntityType> type exposes the following members.

  NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object. This method is hidden from IntelliSense. (Overrides Object.Equals(Object).)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. This method is hidden from IntelliSense. (Overrides Object.GetHashCode().)
Public methodGetTypeGets the type of the current instance. This method is hidden from IntelliSense.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. This method is hidden from IntelliSense. (Overrides Object.ToString().)
Public methodWithMany() Configures the relationship to be required:many without a navigation property on the other side of the relationship.
Public methodWithMany(Expression<Func<TTargetEntityType, ICollection<TEntityType>>>) Configures the relationship to be required:many with a navigation property on the other side of the relationship.
Public methodWithOptional() Configures the relationship to be required:optional without a navigation property on the other side of the relationship.
Public methodWithOptional(Expression<Func<TTargetEntityType, TEntityType>>) Configures the relationship to be required:optional with a navigation property on the other side of the relationship.
Public methodWithRequiredDependent() 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.
Public methodWithRequiredDependent(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.
Public methodWithRequiredPrincipal() 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.
Public methodWithRequiredPrincipal(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.
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.