应用程序Windows窗体+ WCF数据服务+ ADO.net [英] Application Windows Form + WCF Data Serrvice +ADO.net

查看:64
本文介绍了应用程序Windows窗体+ WCF数据服务+ ADO.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我承认我在互联网上看到的所有内容都有点迷失。



所以我正在开发一个包含WCF的Windows窗体应用程序(销售管理应用程序)来创建一个Web服务,该服务可以在我的桌面应用程序中与给定数据库进行通信( SQL SERVER)。



对于我的应用程序,我想要它MultiPost(多个客户端可以访问并确保客户在处理Base时的竞争),是通过使用WCF数据服务我可以保证这个约束我需要定期。



所以用Visual Studio 2010创建这个项目我该怎么办?

现在,我首先创建了一个ASP.net Empty项目,以便我使用ADO.Net创建了我的数据库,并创建了我的WCF数据服务。我制作了我的Windows窗体项目中的引用服务。

如何处理我的数据库?





嗯,这是很多问题,我现在停下来我还是满满的



感谢您的一些精确度





[感谢Google翻译]







Bonjour,



J'avoue que je suis un peu perdu dans tout ce que lis et vois sur internet。



Donc je suis en traindedévelopper应用程序windows窗体(application de gestion commerciale)intégrant WCF permetdecréerunservice Web quipermettraisàmonapplication bureau de communiquer avec une basesdedonnée(SQL SERVER)。



Pour mon application,je veux qu'elle soit multipost(plusieurs clients peuventyaccéderetil il fourer la concurrence entre ses clients lors de la manipulation de la Base),est ce qu'en utilisant le WCF data service je peux assurer cette contrainte?



Doncpourcréerceprojet avec Visual Studio 2010.评论doisjeprocéder?

Pour le moment,j'aicrééd'abord unASP.net空项目donc lequelj'aicrééaussien utilisantADO.Netma basededonnéepuisj'aicréémonWCF Data Service.et je fait le service reference dans mon projet windows form。

评论je peux ensuite faire pour la manipulation de ma basededonnée?





Bonçafaitdéjà pas mal de questions,j'arrêtelapour le moment ais j'en ai encore plein



Merci de vosquelquesprécision

Hello there,

I admit I'm a bit lost in all that read and see on the internet.

So I'm developing a windows form application (sales management application) incorporating WCF to create a Web service that permettrais at my desk application to communicate with a given database (SQL SERVER).

For my application, I want it MultiPost (multiple clients can access and fo ensure competition among customers when handling Base), is that by using the WCF data service I can assure this constraint I need regular.

So to create this project with Visual Studio 2010 How should I proceed?
For now, I created first a "ASP.net Empty project" so that I have created using "ADO.Net" my database and I created my "WCF Data Service" .and I made ​​the reference service in my windows form project.
how I can do next to handling my database?


Well it's been a lot of questions, I'll stop for now the board I'm still full

Thank you for your few precision


[Thanks to Google Translate]



Bonjour,

J'avoue que je suis un peu perdu dans tout ce que lis et vois sur internet.

Donc je suis en train de développer une application windows form (application de gestion commerciale)intégrant WCF permet de créer un service Web qui permettrais à mon application bureau de communiquer avec une bases de donnée (SQL SERVER).

Pour mon application, je veux qu'elle soit multipost( plusieurs clients peuvent y accéder et il fo assurer la concurrence entre ses clients lors de la manipulation de la Base),est ce qu'en utilisant le WCF data service je peux assurer cette contrainte?

Donc pour créer ce projet avec Visual Studio 2010. Comment dois je procéder ?
Pour le moment, j'ai créé d'abord un "ASP.net Empty project" donc lequel j'ai créé aussi en utilisant "ADO.Net" ma base de donnée puis j'ai créé mon "WCF Data Service".et je fait le service reference dans mon projet windows form.
comment je peux ensuite faire pour la manipulation de ma base de donnée?


Bon ça fait déjà pas mal de questions, j’arrête la pour le moment ais j'en ai encore plein

Merci de vos quelques précision

推荐答案

1.您的数据库模块应该实现到库项目(ASP.NET是Web应用程序的用户界面项目),如果您需要可以使用ADO.NET访问数据库,或者你可以使用实体框架。



这是一篇你可以用它作为sta的文章ADO.NET的关键点:了解ADO.NET的初学者教程 [ ^ ]



2.您的 WCF服务模块可以托管到 Windows服务项目,该模块将引用并使用库项目



请注意,数据库模块和WCF服务模块可以一起托管在同一台服务器上!



3.您的 Windows Forms模块(您希望用户界面)将实现为 WCF客户端,并将与 WCF服务模块进行通信



请注意,您的用户界面模块还有其他选项:WPF(也是桌面应用程序),ASP.NET(Web应用程序),ASP.NET MVC(Web应用程序)。



4.要在多个用户计算机上安装Windows窗体模块,还应创建安装项目仅适用于此Windows窗体模块。
1.Your database module should be implemented into a library project (ASP.NET is a user interface project for web application) and if you want you could use ADO.NET for accessing the database, or you could use Entity Framework.

Here is an article that you could use it as starting point for ADO.NET: A Beginner's Tutorial for Understanding ADO.NET[^]

2.Your WCF service module could be hosted into a windows service project and this module will reference and use the library project .

Note that the database module and WCF service module could be hosted together on the same server!

3.Your Windows Forms module (that you wanted for user interface) will be implemented as WCF client and will communicate with the WCF service module .

Note that there are also others options for your user interface module: WPF (also desktop application), ASP.NET (web application), ASP.NET MVC (web application).

4.For installing your Windows Forms module on multiple users computers you should create also a Setup Project only for this Windows forms module.


这篇关于应用程序Windows窗体+ WCF数据服务+ ADO.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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