src/Shared/EntityFramework/ModelConfiguration/EntityTypeConfiguration.cs
/// <summary>
/// Configures this type to use stored procedures for insert, update and delete.
/// </summary>
/// <param name="modificationStoredProcedureMappingConfigurationAction">
/// Configuration to override the default conventions for procedure and parameter names.
/// </param>
/// <returns> The same configuration instance so that multiple calls can be chained. </returns>
Configures this type to use stored procedures for insert, update and delete.
Configures this type to use stored procedures for insert update and delete .
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
        public EntityTypeConfiguration<TEntityType> MapToStoredProcedures(
            Action<ModificationStoredProceduresConfiguration<TEntityType>> modificationStoredProcedureMappingConfigurationAction)
        {
            Check.NotNull(modificationStoredProcedureMappingConfigurationAction, "modificationStoredProcedureMappingConfigurationAction");
            var modificationStoredProcedureMappingConfiguration
                = new ModificationStoredProceduresConfiguration<TEntityType>();
            modificationStoredProcedureMappingConfigurationAction(modificationStoredProcedureMappingConfiguration);
            _entityTypeConfiguration.MapToStoredProcedures(
                modificationStoredProcedureMappingConfiguration.Configuration,
                allowOverride: true);
            return this;
        }
[ SuppressMessage ( " " , " " ) ] public EntityTypeConfiguration < TEntityType > MapToStoredProcedures ( Action < ModificationStoredProceduresConfiguration < TEntityType > > modificationStoredProcedureMappingConfigurationAction ) { Check . NotNull ( modificationStoredProcedureMappingConfigurationAction , " " ) ; var modificationStoredProcedureMappingConfiguration = new ModificationStoredProceduresConfiguration < TEntityType > ( ) ; modificationStoredProcedureMappingConfigurationAction ( modificationStoredProcedureMappingConfiguration ) ; _entityTypeConfiguration . MapToStoredProcedures ( modificationStoredProcedureMappingConfiguration . Configuration , allowOverride : true ) ; return this ; }
Configures this type to use stored procedures for insert, update and delete.
Configures this type to use stored procedures for insert update and delete .
The same configuration instance so that multiple calls can be chained.
The same configuration instance so that multiple calls can be chained .
modificationStoredProcedureMappingConfigurationAction
Action<ModificationStoredProceduresConfiguration<TEntityType>>
Configuration to override the default conventions for procedure and parameter names.
Configuration to override the default conventions for procedure and parameter names .