Ejemplo n.º 1
0
 public static Conformance AddSummaryForAllResources(this Conformance conformance)
 {
     foreach (var resource in conformance.Rest.FirstOrDefault().Resource.ToList())
     {
         var p = new Conformance.SearchParamComponent();
         p.Name          = "_summary";
         p.Type          = SearchParamType.String;
         p.Documentation = "Summary for resource";
         resource.SearchParam.Add(p);
     }
     return(conformance);
 }
Ejemplo n.º 2
0
        public static Conformance AddSummaryForAllResources(this Conformance conformance)
        {
            var firstOrDefault = conformance.Rest.FirstOrDefault();

            if (firstOrDefault != null)
            {
                foreach (var resource in firstOrDefault.Resource.ToList())
                {
                    var p = new Conformance.SearchParamComponent
                    {
                        Name          = "_summary",
                        Type          = SearchParamType.String,
                        Documentation = "Summary for resource"
                    };
                    resource.SearchParam.Add(p);
                }
            }
            return(conformance);
        }