UpdateModificationStoredProcedureConfiguration<TEntityType>.Navigation Method

 

UpdateModificationStoredProcedureConfiguration<TEntityType>.Navigation<TPrincipalEntityType> Method (Expression<Func<TPrincipalEntityType, TEntityType>>, Action<AssociationModificationStoredProcedureConfiguration<TPrincipalEntityType>>)

Configures parameters for a relationship where the foreign key property is not included in the class.

[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public UpdateModificationStoredProcedureConfiguration<TEntityType> Navigation<TPrincipalEntityType>(
	Expression<Func<TPrincipalEntityType, TEntityType>> navigationPropertyExpression,
	Action<AssociationModificationStoredProcedureConfiguration<TPrincipalEntityType>> associationModificationStoredProcedureConfigurationAction
)
where TPrincipalEntityType : class

Parameters

navigationPropertyExpression
Type: System.Linq.Expressions.Expression<Func<TPrincipalEntityType, TEntityType>>

A lambda expression representing the navigation property for the relationship. C#: t =&gt; t.MyProperty VB.Net: Function(t) t.MyProperty

associationModificationStoredProcedureConfigurationAction
Type: System.Action<AssociationModificationStoredProcedureConfiguration<TPrincipalEntityType>>

A lambda expression that performs the configuration.

Return Value

Type: System.Data.Entity.ModelConfiguration.Configuration.UpdateModificationStoredProcedureConfiguration<TEntityType>

The same configuration instance so that multiple calls can be chained.

Type Parameters

TPrincipalEntityType

The type of the principal entity in the relationship.


UpdateModificationStoredProcedureConfiguration<TEntityType>.Navigation<TPrincipalEntityType> Method (Expression<Func<TPrincipalEntityType, ICollection<TEntityType>>>, Action<AssociationModificationStoredProcedureConfiguration<TPrincipalEntityType>>)

Configures parameters for a relationship where the foreign key property is not included in the class.

[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public UpdateModificationStoredProcedureConfiguration<TEntityType> Navigation<TPrincipalEntityType>(
	Expression<Func<TPrincipalEntityType, ICollection<TEntityType>>> navigationPropertyExpression,
	Action<AssociationModificationStoredProcedureConfiguration<TPrincipalEntityType>> associationModificationStoredProcedureConfigurationAction
)
where TPrincipalEntityType : class

Parameters

navigationPropertyExpression
Type: System.Linq.Expressions.Expression<Func<TPrincipalEntityType, ICollection<TEntityType>>>

A lambda expression representing the navigation property for the relationship. C#: t =&gt; t.MyProperty VB.Net: Function(t) t.MyProperty

associationModificationStoredProcedureConfigurationAction
Type: System.Action<AssociationModificationStoredProcedureConfiguration<TPrincipalEntityType>>

A lambda expression that performs the configuration.

Return Value

Type: System.Data.Entity.ModelConfiguration.Configuration.UpdateModificationStoredProcedureConfiguration<TEntityType>

The same configuration instance so that multiple calls can be chained.

Type Parameters

TPrincipalEntityType

The type of the principal entity in the relationship.