Exemplo n.º 1
0
        /// <summary>Configures stored procedure used to delete entities.</summary>
        /// <returns> The same configuration instance so that multiple calls can be chained. </returns>
        /// <param name="modificationStoredProcedureConfigurationAction">A lambda expression that performs configuration for the stored procedure.</param>
        public ConventionModificationStoredProceduresConfiguration Delete(
            Action <ConventionDeleteModificationStoredProcedureConfiguration> modificationStoredProcedureConfigurationAction)
        {
            Check.NotNull <Action <ConventionDeleteModificationStoredProcedureConfiguration> >(modificationStoredProcedureConfigurationAction, nameof(modificationStoredProcedureConfigurationAction));
            ConventionDeleteModificationStoredProcedureConfiguration procedureConfiguration = new ConventionDeleteModificationStoredProcedureConfiguration(this._type);

            modificationStoredProcedureConfigurationAction(procedureConfiguration);
            this._configuration.Delete(procedureConfiguration.Configuration);
            return(this);
        }
        /// <summary>Configures stored procedure used to delete entities.</summary>
        /// <returns> The same configuration instance so that multiple calls can be chained. </returns>
        /// <param name="modificationStoredProcedureConfigurationAction">A lambda expression that performs configuration for the stored procedure.</param>
        public ConventionModificationStoredProceduresConfiguration Delete(
            Action <ConventionDeleteModificationStoredProcedureConfiguration> modificationStoredProcedureConfigurationAction)
        {
            Check.NotNull(modificationStoredProcedureConfigurationAction, "modificationStoredProcedureConfigurationAction");

            var modificationStoredProcedureConfiguration
                = new ConventionDeleteModificationStoredProcedureConfiguration(_type);

            modificationStoredProcedureConfigurationAction(modificationStoredProcedureConfiguration);

            _configuration.Delete(modificationStoredProcedureConfiguration.Configuration);

            return(this);
        }
        /// <summary>Configures stored procedure used to delete entities.</summary>
        /// <returns> The same configuration instance so that multiple calls can be chained. </returns>
        /// <param name="modificationStoredProcedureConfigurationAction">A lambda expression that performs configuration for the stored procedure.</param>
        public ConventionModificationStoredProceduresConfiguration Delete(
            Action<ConventionDeleteModificationStoredProcedureConfiguration> modificationStoredProcedureConfigurationAction)
        {
            Check.NotNull(modificationStoredProcedureConfigurationAction, "modificationStoredProcedureConfigurationAction");

            var modificationStoredProcedureConfiguration
                = new ConventionDeleteModificationStoredProcedureConfiguration(_type);

            modificationStoredProcedureConfigurationAction(modificationStoredProcedureConfiguration);

            _configuration.Delete(modificationStoredProcedureConfiguration.Configuration);

            return this;
        }