public static List<Category> GetCategories()
        {
            if (Categories != null)
                return Categories;

            List<Category> list = new List<Category>();
            Category category = new Category();
            DataOperator dop = new DataOperator(Runtime.SqlConfig);
            var result = dop.Select(category, "CategoryName<>'recycle' and CategoryName<>'root'", "", 0, 0);
            foreach (var item in result)
            {
                list.Add(item as Category);
            }

            Categories = list;
            return list;
        }
 public static Category GetCategory(string categoryName)
 {
     DataOperator dop = new DataOperator(Runtime.SqlConfig);
     Category category = new Category();
     category.CategoryName = categoryName;
     category = dop.SelectSingle(category) as Category;
     return category;
 }
        /// <summary>
        /// 创建静态文件,为目录页面文件,一直目录和内容
        /// </summary>
        /// <param name="category"></param>
        /// <param name="Content"></param>
        public void Create(Category category,string Content)
        {

        }
        /// <summary>
        /// 创建静态文件,已知文件名,文件内容,所在栏目
        /// </summary>
        /// <param name="name"></param>
        /// <param name="Content"></param>
        /// <param name="category"></param>
        public void Create(string name,string Content,Category category)
        {

        }