iblog 5

苹果有iphone,我有iblog

导航

2013年7月27日

摘要: 因界面中需要读取数据库中表的内容,将服务契约的返回值类型设置为SqlDataReader,以便供GridView调用。如下面的代码所示: [ServiceContract] public interface IStudent { [OperationContract]SqlDataReader getAllStudent(string strsql,string tablename); }编译时错误提示SqlDataReader无法序列化。在网络上找到的解释(http://bbs.csdn.net/topics/80509708)是:在 ADO.NET 的三个基本数据对象 — DataRead 阅读全文

posted @ 2013-07-27 09:34 cbtech 阅读(276) 评论(0) 推荐(0) 编辑