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