Exemple #1
0
        public ModificationStoredProceduresConfiguration <TEntityType> Delete(
            Action <DeleteModificationStoredProcedureConfiguration <TEntityType> > modificationStoredProcedureConfigurationAction)
        {
            Check.NotNull <Action <DeleteModificationStoredProcedureConfiguration <TEntityType> > >(modificationStoredProcedureConfigurationAction, nameof(modificationStoredProcedureConfigurationAction));
            DeleteModificationStoredProcedureConfiguration <TEntityType> procedureConfiguration = new DeleteModificationStoredProcedureConfiguration <TEntityType>();

            modificationStoredProcedureConfigurationAction(procedureConfiguration);
            this._configuration.Delete(procedureConfiguration.Configuration);
            return(this);
        }
        public ModificationStoredProceduresConfiguration <TEntityType> Delete(
            Action <DeleteModificationStoredProcedureConfiguration <TEntityType> > modificationStoredProcedureConfigurationAction)
        {
            Check.NotNull(modificationStoredProcedureConfigurationAction, "modificationStoredProcedureConfigurationAction");

            var modificationStoredProcedureConfiguration
                = new DeleteModificationStoredProcedureConfiguration <TEntityType>();

            modificationStoredProcedureConfigurationAction(modificationStoredProcedureConfiguration);

            _configuration.Delete(modificationStoredProcedureConfiguration.Configuration);

            return(this);
        }