使用什么模式
我们正在启动一个项目来重做我们的 ERP 软件。它将相当大,由几个模块组成。它将用于打开新项目、输入一些参数、选择零件并生成报价。它还将有一个定制的 CRM 模块。我们的目标是在四个月内开发桌面版,但稍后我们希望将其移植到网络上。到目前为止,我们一直使用 VB2010 WinForms 与 .NET4 和实体框架来进行数据库访问。我们还使用 DevExpress 控件。
最好的技术/模式是什么,以便我们的项目以后可以轻松移植到网络上?
我们简要地了解了 LightSwitch,它似乎提供了部署到 Web 或桌面的选择,但 UI 似乎仅限于模板,并且与 DevExpress 控件不兼容。有没有什么沿着这些思路但更强大的东西 - 最好是能让我们使用 DevExpress 和实体的东西?
欢迎任何建议。
We're starting a project to redo our ERP software. It will be quite sizeable, consisting of several modules. It will be used to open new project, enter some parameters, choose parts, and produce a quote. It will also have a custom CRM module. In four months our target is to develop this for desktop, but later on we'd like to port this to the web. So far we've been using VB2010 WinForms with .NET4 and Entity Framework for the DB access. We also use DevExpress controls.
What is the best technology / pattern to use so that our project is easily portable to the web later on?
We briefly looked at LightSwitch and it seems to offer the choice of deployment to the Web or Desktop, but the UI seems limited to templates, and it isn't compatible with DevExpress controls. Is there anything along these lines but more robust - preferably one that would let us work with DevExpress and Entities?
Any suggestions are welcome.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从根本上来说,网络和桌面是截然不同的目标。 Web 应用程序通常是有状态系统的无状态视图,并使用请求/响应架构,而桌面应用程序是有状态的并且通常是事件驱动的。
话虽这么说,如果 LightSwitch 对于您的目的来说太有限(不幸的是,这并不完全令人惊讶),那么您在 .NET 世界中的选择就是 WinForms 和 WPF。
一般来说,WPF 是更好的选择,因为它是事物发展的方向(声明性用户界面,大部分(如果不是完全)在 XAML 中定义),并且工具集与 Silverlight 非常相似,因此您将获得 1.75 的价格之一。缺点是,与 WinForms 相比,它不太成熟(无论是积极还是消极的意义上)。
话虽这么说,DevExpress 是一个优秀的桌面应用程序工具集,并且它们对 WPF 的支持非常好(据我所知,因为我主要是 WinForms 开发人员)。
精简版:使用 WPF
Fundamentally, the web and the desktop are very different targets. Web applications are generally stateless views into stateful systems and use a request/response architecture, whereas desktop applications are stateful and usually event-driven.
That being said, if LightSwitch is too limited for your purposes (not entirely surprising, unfortunately), then your choices in the .NET world are WinForms and WPF.
In general, WPF is a better choice, as it's the direction that things are moving (a declarative user interface defined mostly, if not completely, in XAML) and the toolset is very similar to Silverlight, so you'll get 1.75 for the price of one. The downside is, compared to WinForms, it's less mature (in both the positive and negative sense of that term).
That being said, DevExpress is an excellent desktop application toolset and their support for WPF is (from what I gather, as I'm primarily a WinForms developer) very good.
Condensed version: Use WPF