Exemplo n.º 1
0
        /// <summary>
        /// 删除系统代码。
        /// </summary>
        /// <param name="id">要删除的系统代码的主键值。</param>
        public static void DeleteSysCode(string id)
        {
            Db.SessionFactory.EvictQueries("SysCode");

            SysCode sc = Db.Session.Load(typeof(SysCode), id) as SysCode;

            sc.BreakAwayFromSysCodeType();

            Db.TransDelete(sc);
        }