icommentservice.cs
来自「该项目中对 SQLHelper 类进行了简单封装」· CS 代码 · 共 46 行
CS
46 行
/*
* ICommentService.cs @Microsoft Visual Studio 2008 <.NET Framework 3.5>
* AfritXia
* 2007-12-11
*
* Copyright(c) http://www.AfritXia.NET/
*
*/
using System;
using System.Collections.Generic;
using System.ServiceModel;
using NET.AfritXia.MyHome.Model.Message;
namespace NET.AfritXia.MyHome.ServiceInterface
{
/// <summary>
/// 评论服务接口
/// </summary>
[ServiceContract]
public interface ICommentService : IService
{
/// <summary>
/// 添加留言
/// </summary>
/// <param name="newComment"></param>
[OperationContract]
void Append(Comment newComment);
/// <summary>
/// 删除评论
/// </summary>
/// <param name="commentUID">评论 ID</param>
[OperationContract]
void Delete(int commentUID);
/// <summary>
/// 浏览评论列表
/// </summary>
/// <param name="belongToArticleID">所属文章 ID</param>
/// <returns></returns>
[OperationContract]
IList<Comment> ViewCommentList(int belongToArticleUID);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?