/// <summary> /// 根据主键删除记录 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="key"></param> /// <returns></returns> public static bool DeleteByKey <T>(object key) where T : class, new () { return(utity.DeleteByKey <T>(key) > 0); }