コード例 #1
0
        private void AssemberDomainesDIntervetion(CVSection sectionDomaines)
        {
            XmlDocTable            domainesTable      = sectionDomaines.Nodes.Skip(1).Cast <XmlDocTable>().First();
            List <XmlDocParagraph> domainesParagraphs = domainesTable.GetParagraphsFromColumns();
            DomaineDInterventionGraphRepository repo  = new DomaineDInterventionGraphRepository();
            DomaineDIntervention domaine;

            domainesParagraphs.ForEach(x =>
            {
                domaine = DomaineDIntervention.CreateDomaineDIntervetion(x.GetParagraphText());
                domaine = repo.CreateIfNotExists(new Dictionary <string, object> {
                    { "Description", domaine.Description }
                });

                conseiller.DomaineDInterventions.Add(domaine);
            });
        }