ASP和C#共享数据库。 [英] ASP and C# sharing database.

查看:54
本文介绍了ASP和C#共享数据库。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个图书馆系统项目。我希望它是一半的基于Web和半窗口的应用程序。网络库是供图书馆用户在线注册,搜索和预订图书的,而Windows应用程序则供图书馆员用来生成报告和其他基本图书馆作品。我差点完成创建Windows应用程序但我的问题是如何在两个应用程序之间共享我的数据库?你有什么建议吗?

I'm creating a library system project. I want it to be half web-base and half windows application. The web-base is for library users to register, search and reserve books online, and the windows application is for librarian to generate reports and other basic library works. Im almost done creating windows application but my problem is how can I share my database between two application? do you have any suggestion how can I implement this?

推荐答案

如果您的RDBMS基于客户端 - 服务器<,您可以在多个应用程序之间共享数据库/ i>模型,但是,无论如何Web层都存在且Web应用程序是全局可访问的,您最好引入 DAL

http://en.wikipedia.org/wiki/Data_access_layer [ ^ ]。



-SA
You can share the database between several applications if your RDBMS is based on the client-server model, but, as the Web layer is present anyway and the Web application is globally accessible, you should better introduce DAL:
http://en.wikipedia.org/wiki/Data_access_layer[^].

—SA


这篇关于ASP和C#共享数据库。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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