예제 #1
0
        public ManyToManyModificationStoredProceduresConfiguration <TEntityType, TTargetEntityType> Delete(
            Action <ManyToManyModificationStoredProcedureConfiguration <TEntityType, TTargetEntityType> > modificationStoredProcedureConfigurationAction)
        {
            Check.NotNull(modificationStoredProcedureConfigurationAction, "modificationStoredProcedureConfigurationAction");

            var modificationStoredProcedureConfiguration
                = new ManyToManyModificationStoredProcedureConfiguration <TEntityType, TTargetEntityType>();

            modificationStoredProcedureConfigurationAction(modificationStoredProcedureConfiguration);

            _configuration.Delete(modificationStoredProcedureConfiguration.Configuration);

            return(this);
        }
예제 #2
0
        public ManyToManyModificationStoredProceduresConfiguration <TEntityType, TTargetEntityType> Delete(
            Action <ManyToManyModificationStoredProcedureConfiguration <TEntityType, TTargetEntityType> > modificationStoredProcedureConfigurationAction)
        {
            Check.NotNull <Action <ManyToManyModificationStoredProcedureConfiguration <TEntityType, TTargetEntityType> > >(modificationStoredProcedureConfigurationAction, nameof(modificationStoredProcedureConfigurationAction));
            ManyToManyModificationStoredProcedureConfiguration <TEntityType, TTargetEntityType> procedureConfiguration = new ManyToManyModificationStoredProcedureConfiguration <TEntityType, TTargetEntityType>();

            modificationStoredProcedureConfigurationAction(procedureConfiguration);
            this._configuration.Delete(procedureConfiguration.Configuration);
            return(this);
        }