Exemplo n.º 1
0
        protected override void ExecuteCmdlet()
        {
            base.ExecuteCmdlet();

            switch (this.ParameterSetName)
            {
            case RemoveOptionSetValueGlobalParameterSet:
                ExecuteAction(OptionSet, delegate
                {
                    _repository.DeleteOptionSetValue(OptionSet, Value);
                });
                break;

            case RemoveOptionSetValueEntityParameterSet:
                ExecuteAction(string.Format("{0}: {1}", Entity, Attribute), delegate
                {
                    _repository.DeleteOptionSetValue(Entity, Attribute, Value);
                });
                break;

            default:
                break;
            }
        }