/// <summary> /// 得到一个对象实体,从缓存中 /// </summary> public TDTK.PlatForm.MVC4.Model.TT_RoomSupervise GetModelByCache(string RSCode) { TT_RoomSupervise rs = new TT_RoomSupervise(); rs.RSCode = RSCode; string CacheKey = "TT_RoomSuperviseModel-" + RSCode; object objModel = Maticsoft.Common.DataCache.GetCache(CacheKey); if (objModel == null) { try { objModel = dal.GetModel(rs); 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.TT_RoomSupervise)objModel; }
public TT_RoomSupervise GetModel(TT_RoomSupervise t) { return dal.GetModel(t); }
public bool Delete(TT_RoomSupervise t) { return dal.Delete(t); }
public bool Update(TT_RoomSupervise t) { return dal.Update(t); }
public int Add(TT_RoomSupervise t) { return dal.Add(t); }
public bool Exists(TT_RoomSupervise t) { return dal.Exists(t); }