private void GetParameters() { if (StoredProcedureEditorItem.EditStoredProcedure(EditingInfo)) { Parameters = new ObservableCollection <ProcedureParameterModel>(EditingInfo.ProcedureParameters.Select(p => new ProcedureParameterModel(this, p))); } }
public void EditValue(Property property, object designer) { var executeStoredProcedureDesigner = (ExecuteStoredProcedureDesigner)designer; EditingInfo editingInfo = new EditingInfo(executeStoredProcedureDesigner) { ShouldUpdateConnectionString = false, ShouldUpdateStoredProcedure = false, ShouldUpdateProcedureParameters = false, ShouldUpdateResultSets = true }; if (StoredProcedureEditorItem.EditStoredProcedure(editingInfo)) { executeStoredProcedureDesigner.Context.TransactionManager.StartTransaction("Refresh result sets from database"); editingInfo.UpdateDesigner(executeStoredProcedureDesigner); executeStoredProcedureDesigner.Context.TransactionManager.StopTransaction(); } }