예제 #1
0
        private void BuildModelsAndPermissions()
        {
            string path = MapPath("~/Web.sitemap");
            if (File.Exists(path))
            {

                sqls.Clear();

                // 删除模块表

                sqls.Add(DELETE_MODES_SQL);

                XmlDocument document = new XmlDocument();
                document.Load(path);
                XmlNode xnRoot = document.ChildNodes[1].FirstChild;
                InsertNode(xnRoot, "root", 0, 0);
                SqlHelper dal = new SqlHelper();
                dal.ExecuteNoQueryTran(sqls);
            }
        }