public System.Data.DataSet InvokeProcedureFillSet(DataBase DB) { if (DB == null) { if (_defaultDB == null) { _defaultDB = new DataBase(); } DB = _defaultDB; } ProcedureResult result = new ProcedureResult(); try { if (BeforeInvoke != null) { BeforeInvoke(this, DB); } result.DataSetResult = DB.InvokeProcedureFillSet(this); if (AfterInvoke != null) { AfterInvoke(result, this, DB); } } catch (Exception ex) { if (OnError == null || OnError(ex, DB)) { throw ex; } } return(result.DataSetResult); }
public object InvokeProcedureResult(DataBase DB) { if (DB == null) { if (_defaultDB == null) _defaultDB = new DataBase(); DB = _defaultDB; } ProcedureResult result = new ProcedureResult(); try { if (BeforeInvoke != null) BeforeInvoke(this, DB); result.ObjectResult = DB.InvokeProcedureResult(this); if (AfterInvoke != null) AfterInvoke(result, this, DB); } catch (Exception ex) { if (OnError == null || OnError(ex, DB)) { throw ex; } } return result.ObjectResult; }