/// <summary> /// Get MDataTable /// </summary> public MDataTable ExeMDataTable() { CheckDisposed(); AopResult aopResult = SetAopResult(AopEnum.ExeMDataTable); if (aopResult == AopResult.Return) { return(_aop.Para.Table); } else { if (aopResult != AopResult.Break) { _aop.Para.Table = dalHelper.ExeDataReader(_procName, _isProc); _aop.Para.Table.Columns.DataBaseType = DataBaseType; _aop.Para.Table.Conn = dalHelper.ConnName; _aop.Para.IsSuccess = _aop.Para.Table.Rows.Count > 0; } if (aopResult != AopResult.Default) { _aop.End(AopEnum.ExeMDataTable); } return(_aop.Para.Table); } }
/// <summary> /// Get MDataTable /// </summary> public MDataTable ExeMDataTable() { CheckDisposed(); AopResult aopResult = SetAopResult(AopEnum.ExeMDataTable); if (aopResult == AopResult.Return) { return(_aop.Para.Table); } else { if (aopResult != AopResult.Break) { switch (dalHelper.DataBaseType) { case DalType.Txt: case DalType.Xml: _aop.Para.Table = _noSqlCommand.ExeMDataTable(); break; default: _aop.Para.Table = dalHelper.ExeDataReader(_procName, _isProc); _aop.Para.Table.Columns.dalType = DalType; // dalHelper.ResetConn();//重置Slave break; } _aop.Para.Table.Conn = dalHelper.ConnName; _aop.Para.IsSuccess = _aop.Para.Table.Rows.Count > 0; } if (aopResult != AopResult.Default) { _aop.End(AopEnum.ExeMDataTable); } return(_aop.Para.Table); } }