/// <summary> /// 得到一个对象实体,从缓存中 /// </summary> public TDTK.PlatForm.MVC4.Model.Sys_Dictionary GetModelByCache(string BusinID, string BusinTypeID) { Sys_Dictionary sd = new Sys_Dictionary(); sd.BusinID = BusinID; sd.BusinTypeID = BusinTypeID; string CacheKey = "Sys_DictionaryModel-" + BusinID + BusinTypeID; object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey); if (objModel == null) { try { objModel = dal.GetModel(sd); if (objModel != null) { int ModelCache = Maticsoft.Common.ConfigHelper.GetConfigInt("ModelCache"); Maticsoft.Common.DataCache.SetCache(CacheKey, objModel, DateTime.Now.AddMinutes(ModelCache), TimeSpan.Zero); } } catch { } } return (TDTK.PlatForm.MVC4.Model.Sys_Dictionary)objModel; }
public Sys_Dictionary GetModel(Sys_Dictionary t) { return dal.GetModel(t); }
public bool Delete(Sys_Dictionary t) { return dal.Delete(t); }
public bool Update(Sys_Dictionary t) { return dal.Update(t); }
public int Add(Sys_Dictionary t) { return dal.Add(t); }
public bool Exists(Sys_Dictionary t) { return dal.Exists(t); }