常用方法
常用方法
常用方法
常用方法
public as_rights GetRight(int id) { var res = new as_rights(); var key = "as_rights_id_" + id; if (CacheManager.EnableCaching && CacheManager.Cache[key] != null && false) { res = (as_rights)CacheManager.Cache[key]; } else { try { res = db.GetRight(id); CacheManager.CacheData(key, res); }catch (Exception ex) { Debug.LogError(ex); } } return(res); }