src/Shared/EntityFramework/ModelConfiguration/Configuration/Functions/AssociationModificationStoredProcedureConfiguration.cs
/// <summary>Configures a parameter for this stored procedure.</summary>
/// <returns> The same configuration instance so that multiple calls can be chained. </returns>
/// <param name="propertyExpression"> A lambda expression representing the property to configure the parameter for. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty </param>
/// <param name="parameterName">The name of the parameter.</param>
/// <typeparam name="TProperty">The type of the property.</typeparam>
Configures a parameter for this stored procedure.
Configures a parameter for this stored procedure .
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
        public AssociationModificationStoredProcedureConfiguration<TEntityType> Parameter<TProperty>(
            Expression<Func<TEntityType, TProperty>> propertyExpression, string parameterName)
            where TProperty : struct
        {
            Check.NotNull(propertyExpression, "propertyExpression");
            Check.NotEmpty(parameterName, "parameterName");
            _configuration.Parameter(
                new PropertyPath(new[] { _navigationPropertyInfo }.Concat(propertyExpression.GetSimplePropertyAccess())),
                parameterName);
            return this;
        }
[ SuppressMessage ( " " , " " ) ] public AssociationModificationStoredProcedureConfiguration < TEntityType > Parameter < TProperty > ( Expression < Func < TEntityType , TProperty > > propertyExpression , string parameterName ) where TProperty : struct { Check . NotNull ( propertyExpression , " " ) ; Check . NotEmpty ( parameterName , " " ) ; _configuration . Parameter ( new PropertyPath ( new [ ] { _navigationPropertyInfo } . Concat ( propertyExpression . GetSimplePropertyAccess ( ) ) ) , parameterName ) ; return this ; }
Configures a parameter for this stored procedure.
Configures a parameter for this stored procedure .
The same configuration instance so that multiple calls can be chained.
The same configuration instance so that multiple calls can be chained .
propertyExpression
Expression<Func<TEntityType, TProperty>>
A lambda expression representing the property to configure the parameter for.
A lambda expression representing the property to configure the parameter for .
parameterName
string
The name of the parameter.
The name of the parameter .
typeparam
The type of the property.
The type of the property .