protected override void LoadProperties()
        {
            var queryParams = EntitySource.Root.Descendants("return-scalar", XmlNamespace);

            foreach (var queryParam in queryParams)
            {
                var property = new NHibernateCommandProperty(queryParam, this);
                if (!PropertyMap.ContainsKey(property.Name))
                {
                    PropertyMap.Add(property.Name, property);
                }
            }
        }
        protected override void LoadSearchCriteria()
        {
            var searchCriteria = new SearchCriteria(SearchCriteriaType.Command);

            var queryParams = EntitySource.Root.Descendants("query-param", XmlNamespace);

            foreach (var queryParam in queryParams)
            {
                var property = new NHibernateCommandProperty(queryParam, this);
                searchCriteria.Properties.Add(property);
            }

            SearchCriteria.Add(searchCriteria);
        }