如何在一台机器上运行远程系统C#+ sql server应用程序 [英] how to run remote system C# + sql server application on one machine
本文介绍了如何在一台机器上运行远程系统C#+ sql server应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
plz
感谢先进的
解决方案
请看我对这个问题的评论。因此,没有明确指示,对不起。您需要构建一些体系结构,只有在项目目标更加明确以及最关键要求的数量时才应该这样做。所以,我只能给你一些开始步骤的方向。
- 了解系统架构并获得构建架构的一些经验。我明白,这个建议比遵循更容易,但我该怎么办?也许你必须从你提到的项目开始;我不确定。
- 了解层和多层架构: http://en.wikipedia。 org / wiki / Multitier_architecture [ ^ ]。
- 使用.NET和C#,最自然的方法之一就是使用WCF,所以即使你最终决定不使用它,你也需要学习一些基本的理解。你根本不能不知道它。请参阅:
http://en.wikipedia.org/wiki/Windows_Communication_Foundation [< a href =http://en.wikipedia.org/wiki/Windows_Communication_Foundationtarget =_ blanktitle =New Window> ^ ],
https://msdn.microsoft.com/en-us/vstudio/aa496123 [ ^ ],
https://msdn.microsoft.com/en-us/library/dd456779.aspx [ ^ ]。- 即使您知道并正确考虑使用WCF,您需要考虑到可以在不同级别实现远程操作,从原始套接字到经典远程处理到WFC。您需要了解网络的工作原理。请在我过去的解决方案中查看我对这些方法的概述:
我如何将byte []发送到其他电脑 [ ^ ],
通信b / w局域网上的两个Windows应用程序。 [ ^ ]。
请注意,我列出的项目不是1,2,3 ......它们不是订购的,不是步骤。你决定如何以及何时接近什么。我只想说明你的想法是什么初步步骤。
祝你好运,
-SA
friends i developed a hospital management system using c# windows form and sql server and i am accessing the database remotely from another computer now i need to run brother sql server database and C# application in one computer how i can do it
plz
thanks in advanced
解决方案
Please see my comment to the question. Therefore, no "clear directions", sorry. You need to build some architecture, and this is should be done only when the goals of your project are more clear, as well as the number of most critical requirements. So, I can only give you the direction for some starting steps.
- Learn about system architecture and get some experience in creating of the architecture. I understand, this advice is easier to give than to follow, but what can I do? Perhaps you will have to start with the project you mentioned; I'm not sure.
- Learn about tiers and multi-tier architectures: http://en.wikipedia.org/wiki/Multitier_architecture[^].
- With .NET and C#, one of the most natural approaches would be using WCF, so this is one thing you need to learn to some essential degree of understanding even if you finally decide to not use it. You simply cannot afford not knowing it. Please see:
http://en.wikipedia.org/wiki/Windows_Communication_Foundation[^],
https://msdn.microsoft.com/en-us/vstudio/aa496123[^],
https://msdn.microsoft.com/en-us/library/dd456779.aspx[^].- Even if you know and properly consider using WCF, you need to take into account that remote operation can be achieved in different levels, from raw sockets to "classical" remoting to WFC. You need to understand how networking works. Please see my overview of these approaches in my past solutions:
how i can send byte[] to other pc[^],
Communication b/w two Windows applications on LAN.[^].
Note that the items I listed are not 1, 2, 3… they are not ordered, are not steps. You decide how and when to approach what. I'm just trying to give your the idea what preliminary steps could be.
Good luck,
—SA
这篇关于如何在一台机器上运行远程系统C#+ sql server应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文