//utilise les procédures stockées de lecture procedureName public DataView loadSpecificTable(string newTableName, string procedureName) { try { FifaDAL.MatchManagement.FifaManagementData oData = new FifaDAL.MatchManagement.FifaManagementData(_Connection); return(oData.Load(procedureName, newTableName).Tables[newTableName].DefaultView); } catch (TechnicalError oErreur) { throw oErreur; } catch (Exception ex) { throw ex; } }
//utilise les procédures stockées de lecture GetAll public DataView loadAllData() { try { FifaDAL.MatchManagement.FifaManagementData oData = new FifaDAL.MatchManagement.FifaManagementData(_Connection); return(oData.Load(this.name + "_GetAll", this.name).Tables[this.name].DefaultView); } catch (TechnicalError oErreur) { throw oErreur; } catch (Exception ex) { throw ex; } }