private dynamic GetSummarySite(SiteArcheo site)
        {
            if (site == null)
            {
                return(null);
            }

            return(new
            {
                Id = site.Id,
                CodeCommune = site.CodeCommune,
                Commune = site.Commune != null ? site.Commune.Nom : string.Empty,
                Departement = site.Commune != null ? (int?)site.Commune.Departement : null,
                X = site.X,
                Y = site.Y,
                Localisation = site.Localisation,
                PlanId = site.PlanId,
                Identifications = site.Identifications.Select(o => new
                {
                    ReferentielId = o.ReferentielId,
                    Reference = o.Reference,
                    Nom = o.Nom
                })
            });
        }
Exemple #2
0
        private void ProcessSite(SiteArcheo site)
        {
            int id = site.Id;

            string[] chemins = site.Sarcophages.SelectMany(o => o.Panneaux).SelectMany(o => o.Illustrations).Select(o => o.Illustration.Chemin).ToArray();
        }