Пример #1
0
 private void GetParameters()
 {
     if (StoredProcedureEditorItem.EditStoredProcedure(EditingInfo))
     {
         Parameters = new ObservableCollection <ProcedureParameterModel>(EditingInfo.ProcedureParameters.Select(p => new ProcedureParameterModel(this, p)));
     }
 }
Пример #2
0
        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();
            }
        }