private IEnumerable <GlassQuery> GetQuery(KeyValuePair <Type, Configuration.SitecoreClassConfig> cls)
        {
            var scProps = cls.Value.Properties.Where(x => x.Attribute is SitecoreQueryAttribute);

            List <GlassQuery> queries = new List <GlassQuery>();


            foreach (var scProp in scProps)
            {
                var propAttr = scProp.Attribute as SitecoreQueryAttribute;
                var query    = new GlassQuery();

                query.Name            = scProp.Property.Name;
                query.Type            = DashboardUtilities.GetTypeName(scProp.Property.PropertyType);
                query.InferType       = propAttr.InferType;
                query.IsLazy          = propAttr.IsLazy;
                query.IsRelative      = propAttr.IsRelative;
                query.Query           = propAttr.Query;
                query.UseQueryContext = propAttr.UseQueryContext;

                queries.Add(query);
            }

            return(queries);
        }
        private IEnumerable<GlassQuery> GetQuery( KeyValuePair<Type, Configuration.SitecoreClassConfig> cls)
        {
            var scProps = cls.Value.Properties.Where(x => x.Attribute is SitecoreQueryAttribute);

            List<GlassQuery> queries = new List<GlassQuery>();


            foreach (var scProp in scProps)
            {
                var propAttr = scProp.Attribute as SitecoreQueryAttribute;
                var query = new GlassQuery();

                query.Name = scProp.Property.Name;
                query.Type = DashboardUtilities.GetTypeName(scProp.Property.PropertyType);
                query.InferType = propAttr.InferType;
                query.IsLazy = propAttr.IsLazy;
                query.IsRelative = propAttr.IsRelative;
                query.Query = propAttr.Query;
                query.UseQueryContext = propAttr.UseQueryContext;

                queries.Add(query);
            }

            return queries;

        }