/// <summary> /// 删除模块分类。 /// </summary> /// <param name="id">要删除的模块分类的主键值。</param> public static void DeleteModuleType(string id) { Db.SessionFactory.EvictQueries("RoleType"); RoleType rt = Db.Session.Load(typeof(RoleType), id) as RoleType; rt.BreakAwayFromParent(); Db.TransDelete(rt); }