Example #1
0
 /// <summary>
 /// 获取tag列表(包含父对象)
 /// </summary>
 /// <param name="tag">tag</param>
 /// <returns>tag集合</returns>
 public IList<Tag> GetTag(Tag tag)
 {
     return _iTagDao.GetTag(tag);
 }
Example #2
0
 /// <summary>
 /// 更新tag
 /// </summary>
 /// <param name="tag">tag</param>
 public int UpdateTag(Tag tag)
 {
     return _iTagDao.UpdateTag(tag);
 }
Example #3
0
 /// <summary>
 /// 插入tag
 /// </summary>
 /// <param name="tag">tag</param>
 public void InsertTag(Tag tag)
 {
     try
     {
         _daoManager.BeginTransaction();
         _iTagDao.InsertTag(tag);
         _daoManager.CommitTransaction();
     }
     catch (Exception ex)
     {
         _daoManager.RollBackTransaction();
         throw ex;
     }
 }
Example #4
0
 /// <summary>
 /// 更新Tag
 /// </summary>
 /// <param name="Tag">tag</param>
 public int UpdateTag(Tag tag)
 {
     int i = ExecuteUpdate("UpdateTag", tag);
     tag.IdOld = tag.Id;
     return i;
 }
Example #5
0
 /// <summary>
 /// 插入Tag
 /// </summary>
 /// <param name="Tag">tag</param>
 public void InsertTag(Tag tag)
 {
     ExecuteInsert("InsertTag", tag);
     tag.IdOld = tag.Id;
 }
Example #6
0
 /// <summary>
 /// 获取tag列表(包含父对象)
 /// </summary>
 /// <param name="tag">tag</param>
 /// <returns>tag集合</returns>
 public IList<Tag> GetTag(Tag tag)
 {
     return ExecuteQueryForList<Tag>("GetTag", tag);
 }