/// <summary> /// Constructeur pour une table /// </summary> /// <param name="nom"></param> /// <param name="colonnes"></param> /// <param name="contraintes"></param> /// <param name="donnees"></param> /// <param name="sequence"></param> public Table(string nom, List <Colonne> colonnes, Contrainte contraintes, List <Donnee> donnees) { this.Nom = nom; this.Colonnes = colonnes; this.Contraintes = contraintes; this.Donnees = donnees; }
/// <summary> /// Renvoie la liste des tables /// </summary> /// <param name="doc"></param> /// <param name="nsmgr"></param> /// <returns></returns> public static List <Table> Tables(XmlDocument doc, XmlNamespaceManager nsmgr) { List <string> noms = NomsTables(doc, nsmgr); List <Table> tables = new List <Table>(); for (int i = 1; i < NombreTables(doc, nsmgr) + 1; i++) { Contrainte contraintes = Contrainte.Contraintes(doc, nsmgr, i); List <Colonne> colonnes = Colonne.ColonnesTables(doc, nsmgr, i); List <Donnee> donnees = Donnee.DonneesTables(doc, nsmgr, i); tables.Add(new Table(noms[i - 1], colonnes, contraintes, donnees)); } return(tables); }