예제 #1
0
 /// <summary>
 /// 更新数据行
 /// </summary>
 /// <param name="entity">实体</param>
 /// <returns>更新成功则返回true</returns>
 public bool Update(PostTagMap entity)
 {
    return PostTagMapDAL.Instance.Update(entity);
 }
예제 #2
0
 /// <summary>
 /// 从数据库中删除指定的实体,是以主键方式删除
 /// </summary>
 /// <param name="entity">实体</param>
 /// <returns>删除成功则返回true</returns>
 public bool Delete(PostTagMap entity)
 {
    return PostTagMapDAL.Instance.Delete(entity);
 }
예제 #3
0
 public bool Add(PostTagMap entity)
 {
     return PostTagMapDAL.Instance.Add(entity);
 }
예제 #4
0
 /// <summary>
 /// 更新数据行
 /// </summary>
 /// <param name="entity">实体</param>
 /// <returns>更新成功则返回true</returns>
 public bool Update(PostTagMap entity)
 {
    return CONN.Update<PostTagMap>(entity);            
 }
예제 #5
0
 /// <summary>
 /// 从数据库中删除指定的实体,是以主键方式删除
 /// </summary>
 /// <param name="entity">实体</param>
 /// <returns>删除成功则返回true</returns>
 public bool Delete(PostTagMap entity)
 {         
    return CONN.Delete<PostTagMap>(entity);
 }
예제 #6
0
 /// <summary>
 /// 在数据库中添加行,如果主键是自增的那么设置主键是没有意义的
 /// </summary>
 /// <param name="entity">实体</param>
 /// <returns></returns>
 public bool Add(PostTagMap entity)
 {
     return CONN.Insert<PostTagMap>(entity);            
 }