使用Web服务或WCF的连接字符串 [英] Connection string using web services or WCF

查看:79
本文介绍了使用Web服务或WCF的连接字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

团队,

我正在创建票务工具.
我是编程新手.

我当时使用直接连接字符串来连接数据库,效果很好,但是后来我遇到了一些障碍.

现在,我打算使用Web服务或WCF进行相同的操作,因此我需要帮助-不知道如何启动它.

Hi Team,

I''m creating a ticketing tool.
I am new to programming.

I was using a direct connection string to connect with the DB, which works fine, but then I faced some road blocks with that approach.

Now I am planning to use a web service or WCF to do the same, hence I need help - no idea how to start this.

推荐答案

你的系统?您在编写业务逻辑吗?您打算通过Web服务轮询数据库吗?一种常见的方法是将您的业务逻辑封装在经典的Web Service或WCF Service中.这将在内部轮询数据库并将结果提供给您的表示层.

您可以在msdn上了解Web Service和WCF.有很多文件.
What is the architecture of your system? Are you coding a Business Logic? Do you plan to poll the database through the Web Service? A common approach is to encapsulate your business logic in a classic Web Service or WCF Service. That will internally poll the Database and provide result to your presentation layer.

You can learn about Web Service and WCF at msdn. There are loads of documents.


这篇关于使用Web服务或WCF的连接字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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