public CategoriesCollection Categories_LoadByDynamic(string serializedQuery)
		{
			CategoriesQuery query = CategoriesQuery.SerializeHelper.FromXml(
				serializedQuery, typeof(CategoriesQuery), AllKnownTypes) as CategoriesQuery;

			CategoriesCollection coll = new CategoriesCollection();
			coll.es.IsLazyLoadDisabled = true;
			coll.Load(query);
			return coll;
		}
		public CategoriesCollectionProxyStub Categories_QueryForCollection(string serializedQuery)
		{
			CategoriesQuery query = CategoriesQuery.SerializeHelper.FromXml(
				serializedQuery, typeof(CategoriesQuery), AllKnownTypes) as CategoriesQuery;

			CategoriesCollection coll = new CategoriesCollection();
			if (coll.Load(query))
			{
				return coll;
			}

			return null;
		}