简体   繁体   English

c#WinForm应用程序设置向导(带有网络数据库和多Cient)

[英]c# WinForm App setup wizard w/ network DB and multi Cient

I have been searching for this for couple days but was unlucky finding any answer. 我已经搜索了几天,但很不幸找不到任何答案。 I am building a winform application . 我正在构建Winform应用程序。 Where the application will be installed to multi PC's on the same network and all will connect to the db on the server in same network. 将应用程序安装到同一网络上的多台PC的地方,所有应用程序都将连接到同一网络中服务器上的数据库。

First , I am unable to find how to develop/design multi client(sorry I don't know what exactly to call it ) application , where same app will be operating at the same time, with different users, in different PC's and all will use the a single DB on the network. 首先,我无法找到如何开发/设计多客户端(抱歉,我不知道确切称呼什么)应用程序,同一应用程序将同时在不同的用户,不同的PC上同时运行,并且所有使用网络上的单个数据库。

Second , I want to create a setup wizard ,where the user will choose ,when installing the application , if its the server , or the client side. 其次,我想创建一个安装向导,在安装应用程序(如果是服务器或客户端)时,用户将在其中进行选择。 When the server is selected it will create the db for the app , and when client is selected , user will point to the server machine on the network and the client app will be installed with pointing at the db on the server. 当选择服务器时,它将为应用程序创建数据库,当选择客户端时,用户将指向网络上的服务器计算机,并且将指向服务器上的数据库安装客户端应用程序。

I don't know if I was clear enough or too complicated while explaining. 我不知道在解释时是否足够清楚或太复杂。

I resolved the issue with WCF. 我解决了WCF的问题。 I am building a WCF Host on the main server , where the terminals will comunicate to main server via WCF and the host program will do all the sql queries. 我正在主服务器上构建WCF主机,终端将通过WCF与主服务器通信,并且主机程序将执行所有sql查询。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM