多台PC上的多用户应用程序 [英] multiuser application on multiple pcs

查看:98
本文介绍了多台PC上的多用户应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个Windows vb.net mssql 2005应用程序,用户可以同时登录到应用程序。任何人都可以提供有关如何执行此操作的任何ides或教程。因为如果一个用户在1个表单中进行更改,那么与此相关的另一个表单也应该更新。



b>。如果两个pc在同一个表单上工作,例如一个打开发票和另一个打开相同的发票,一个删除它。影响数据库但不影响第二台PC上的界面,他在发票和更新中添加了一个新的项目,不应该发生什么呢?



他们可能有很多这样的场景..



实际上我第一次做多网络应用。我不知道从哪里开始,需要处理的事情等等。所以知道这些应用程序的人可以建议我或者可以提供任何链接等吗?

解决方案

我建​​议你从这里开始: ADO.NET [ ^ ]并阅读所有相关文章。你会对实体SQL语言感兴趣[ ^ ]。如果您想查看其他用户所做的更改,请阅读 SQLDependency Class [ ^ ]。



示例:

为初学者使用ADO.NET [ ^ ]

实体框架简介 [ ^ ]

带实体的简单示例框架 [<小时ef =http://www.codeproject.com/Articles/37932/Simple-Sample-with-Entity-Frameworktarget =_ blanktitle =New Window> ^ ]

四种在层之间传递数据的方法 [< a href =http://www.codeproject.com/Articles/493389/Four-ways-of-passing-data-between-layerstarget =_ blanktitle =New Window> ^ ]

使用SqlDependency进行数据更改事件 [ ^ ]

Im making an windows vb.net mssql 2005 application where users can login to application at the same time. Can anyone give any ides or tutorials on how to do this. because if one user makes changes in 1 form then the other form linked to this should also be updated .

b>.if two pc works on same form eg one opens invoice and another opens same invoice and one deletes it .it affects the databasse but not the interface on 2nd pc and he adds a new item in invoice and updates which logicaly shouldnt happen then what to do?

their may be many scenarios like this ..

Actually first time Im making multineetwork application. I have no idea where to start with, things which to be taken care of etc. So anyone who has knowledge of such apps can advice me or can give any link etc ?

解决方案

I would suggest you to start here: ADO.NET[^] and read all related articles. You would be interested Entity SQL language[^] too. If you would like to see the changes made by other user, read about SQLDependency Class[^].

Examples:
Using ADO.NET for beginners[^]
Introduction to Entity Framework[^]
Simple Sample with Entity Framework [^]
Four ways of passing data between layers[^]
Using SqlDependency for data change events[^]


这篇关于多台PC上的多用户应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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