接口文件“IService”:namespace _11.LINQtoSQL.Web
{
// NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
[ServiceContract]
public interface IService1
{
[OperationContract]
List<Product> GetChartData();
}
}问题一:“ServiceContract”是什么???他的作用是什么???问题二:“OperationContract”是什么???他的作用是什么???
{
// NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
[ServiceContract]
public interface IService1
{
[OperationContract]
List<Product> GetChartData();
}
}问题一:“ServiceContract”是什么???他的作用是什么???问题二:“OperationContract”是什么???他的作用是什么???
解决方案 »
- 给Gridview中动态模版列添加事件,请帮帮忙
- 大伙帮忙测测, 新弄的手机/电脑文件中转站, WAP2.0,.NET 2.0技术
- css分页,怎么在asp.net中用????
- 显示问题,急!在线等
- 在ASP。NET中如何取得页页执行生成的HTML代码
- 用Javascript判断文本空不能是空格
- 为什么在B/S下打印水晶报表出现登陆失败了
- visual studio 2008做的带数据库的网站,怎么发布啊????????
- 问一个OWC的问题,大家肯定画过曲线图(趋势图),但可不可以在已有曲线图的基础上,在Y轴再画一条水平线,也就是警戒线,可以吗,怎么做呢?
- 裁判,又见裁判
- FileUpload控件有值时,点击按钮进不去后台
- 正则表达式精确取html标签
http://topic.csdn.net/u/20110412/13/3137206e-9ad3-4c39-b152-21f9a82d7da6.html
[ServiceContract] 标识的接口会被WCF暴露给外部以供调用。
[OperationContract] 用来标记暴露给外部的方法。
对吭,WCF的契约,暴露出的方法。WebService有没有这类型的契约呢???
应该用WebService还是WCF呢???
在WCF中服务一般都定义接口的,这样有利于管理和维护的对吧?关于WCF中的“DataTable”等业务逻辑关系处理可以使用“DLL”文件进行封装吗,可以封装在“三层”里面吗???