使用WCF服务将值插入数据库 [英] Insert values into database by using WCF service

查看:85
本文介绍了使用WCF服务将值插入数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我想使用WCF将数据插入数据库.
请分享一些链接,以便使用WCF插入数据.
谢谢

Hi all,
i want to insert data into database using WCF.
plz share some link for inserting the data using WCF.
Thanks

推荐答案

您不要使用WCF将数据插入数据库. WCF用于Web服务和其他形式的网络通信.要将值插入数据库,您需要诸如ADO.net,实体框架或NHibernate之类的东西.由于您没有说要在其中插入值的数据库,因此在这方面我无法为您提供任何具体帮助,但是您可能会发现以下链接有用:

http://msdn.microsoft.com/en-us/netframework/aa663324.aspx [ ^ ]

http://www.csharp-station.com/Tutorial/AdoDotNet/Lesson01 [ ^ ]

http://nhforge.org/Default.aspx [ http://msdn.microsoft.com/en-us/data/ef.aspx [ ^ ]
You don''t insert data into a database using WCF. WCF is for web services and other forms of networked communication. To insert values into a database you need something like ADO.net, Entity Framework or NHibernate. Since you didn''t say which database you''re trying to insert values into, I can''t offer you any specific help in that regard but you may find the following links useful:

http://msdn.microsoft.com/en-us/netframework/aa663324.aspx[^]

http://www.csharp-station.com/Tutorial/AdoDotNet/Lesson01[^]

http://nhforge.org/Default.aspx[^]

http://msdn.microsoft.com/en-us/data/ef.aspx[^]


尝试
http://nareshkamuni.blogspot.in/2012/04/inserting-and- retrieving-data-from.html [ ^ ]
http: //www.dotnetfunda.com/interview/exclusive/x776-can-we-see-simple-wcf-example-of-transactions-using-sql-server-database.aspx [使用WCF REST,Web服务作为提供程序的商业站点中的数据库CRUD操作和JQuery,以Javascript作为使用者:零回发 [ ^ ]
Try
http://nareshkamuni.blogspot.in/2012/04/inserting-and-retrieving-data-from.html[^]
http://www.dotnetfunda.com/interview/exclusive/x776-can-we-see-simple-wcf-example-of-transactions-using-sql-server-database.aspx[^]
Database CRUD Operations In Business Sites With WCF REST, Web Services As Provider And JQuery, Javascript As Consumer : Zero Postback[^]
http://www.devtechie.com/post/2012/03/24/WCF-application-for-displaying-and-inserting-records-into-database-using-Data-Contract-and-Data-Member-Attributes-%E2%80%93-Part-4.aspx[^]


这篇关于使用WCF服务将值插入数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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