Wcf服务使用Ado.net连接Sql Server [英] Wcf Service using Ado.net to connect with Sql Server

查看:101
本文介绍了Wcf服务使用Ado.net连接Sql Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我在WCf服务上创建了。现在我只想添加Ado.net的概念来连接Sql Server。



请帮我这个。



先谢谢。

Hi All,

I have created on WCf Service. Now I just want to add concepts of Ado.net to connect with Sql Server.

Please help me on this.

Thanks in Advance.

推荐答案

你可以从
开始
http://www.csharp-station.com/Tutorials/AdoDotNet/Lesson01.aspx [ ^ ]

http://www.web-enable.com/technology/summary/ado.asp [ ^ ]
You could start with
http://www.csharp-station.com/Tutorials/AdoDotNet/Lesson01.aspx[^]
http://www.web-enable.com/technology/summary/ado.asp[^]


为了发送不可序列化的您需要创建datacontract的对象。阅读这些文章以获取更多信息:



http:// www .wcftutorial.net / Data-Contract.aspx [ ^ ]

http://msdn.microsoft.com/en- us / library / ms733127.aspx [ ^ ]
In order to send non-serializable objects you need to create a datacontract. Read these articles for more information:

http://www.wcftutorial.net/Data-Contract.aspx[^]
http://msdn.microsoft.com/en-us/library/ms733127.aspx[^]


HI,



我对这个问题有一个答案。



您可以从服务中获取数据集并将其绑定到客户端的下拉列表,而不是将dropdownlist传递给服务吗?
HI ,

I have one answer to this question.

Instead of passing dropdownlist to the service ,you can get the dataset from service and bind it to dropdownlist at client end right?


这篇关于Wcf服务使用Ado.net连接Sql Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆