コード例 #1
0
        /// <summary>
        /// 删除模块分类。
        /// </summary>
        /// <param name="id">要删除的模块分类的主键值。</param>
        public static void DeleteModuleType(string id)
        {
            Db.SessionFactory.EvictQueries("ModuleType");

            ModuleType mt = Db.Session.Load(typeof(ModuleType), id) as ModuleType;

            mt.BreakAwayFromParent();

            Db.TransDelete(mt);
        }