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