⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 commentbussiness.cs

📁 ASP.NET 2.0动态网站设计实例源代码,本书介绍了ASP.NET2.0的基础知识
💻 CS
字号:
///////////////////////////////////////////////////////////
//  CommentBussiness.cs
//  Implementation of the Class CommentBussiness
//  Generated by Enterprise Architect
//  Created on:      13-五月-2006 19:53:13
///////////////////////////////////////////////////////////




using BookShop.Entity;
using BookShop.DataAccess;
using System.Data;
namespace BookShop.Bussiness
{
  /// <summary>
  /// 评论的业务层
  /// </summary>
  public class CommentBussiness
  {

    public CommentBussiness()
    {

    }

    ~CommentBussiness()
    {

    }

    public virtual void Dispose()
    {

    }

    /// <summary>
    /// 添加评论
    /// </summary>
    /// <param name="comment"></param>
    public bool AddComment(CommentEntity comment)
    {
      return new CommentAccess().AddComment(comment);
    }

    /// <summary>
    /// 根据ID删除评论
    /// </summary>
    /// <param name="commentID"></param>
    public bool DeleteCommentByID(int commentID)
    {
      return new CommentAccess().DeleteCommentByID(commentID);
    }

    /// <summary>
    /// 根据评论者获取评论列表
    /// </summary>
    /// <param name="commenterID"></param>
    public DataTable GetCommentsByCommenterID(int commenterID)
    {
      return new CommentAccess().GetCommentsByCommenterID(commenterID);
    }

    /// <summary>
    /// 根据货物ID获取评论列表
    /// </summary>
    /// <param name="goodsID"></param>
    public DataTable GetCommentsByGoodsID(int goodsID)
    {
      return new CommentAccess().GetCommentsByGoodsID(goodsID);
    }

  }//end CommentBussiness

}//end namespace Bussiness

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -