Click here to Skip to main content
15,886,639 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted
Updated 22-Aug-14 22:47pm
v3
Comments
OriginalGriff 23-Aug-14 4:48am    
This is an English language site, and we only accept posts in that language.
Please use Google translate to convert from your native language if you feel your English skills are not sufficient.

Il s'agit d'un site de langue anglaise, et nous acceptons seulement les messages dans cette langue.
S'il vous plaît utiliser Google translate pour convertir votre langue maternelle si vous sentez que vos compétences en anglais ne sont pas suffisantes.

1 solution

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.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900