如何使膜片能/更新,能申请吗? [英] How to make Patch-able/Update-able application?

查看:162
本文介绍了如何使膜片能/更新,能申请吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经完成了一个学生项目,从互联网上的XML文件的这个项目中提取数据并保存到数据库并显示它。我用这些数据在几个不同的方式例如显示主页上,在另一个选项卡中作为一个表,并创建一些图表。

I have completed a student project, this project extract data from xml files on internet and save to database and displays it. And i use that data in a few different ways e.g. display on main page, in another tab as a table, and to create some graphs.

我所做的这一切都通过5个不同的类别。每一类提取不同类型的XML并将其保存到数据库,一个load()函数。

I did all this by making 5 different classes. Each class extracts different type of XML and save it to database with a single Load() function.

该项目的最后一个要求是使应用程序更新,能/补丁,能够(用户不需要下载整个新版本更新的应用程序,而不是一个小补丁安装程序会添加功能的应用程序)。我怎么做?我的老师说,加入多态性会有所帮助,一个朋友说,创建应用程序(它分解成部分)的不同的模块,这样每个班都会有自己的DLL。

Last requirement of the project is to make the application Update-able/Patch-able (user does not need to download the whole new build to update the application, instead a small patch installer will add feature to application). How do i do that? My teacher says that adding polymorphism will help, a friend says that create different modules of application (break it into parts) so that each class will have its own dll.

哪些步骤,我需要做,使之补丁能?如何创建类的DLL?如何打破应用程序分成几部分?或全部,这是不必要的,我应该只使用比较创建了一个补丁双方建立??一个补丁软件

What steps i need to do to make it patch-able? How to create dll of classes? how to break application into parts? Or all of this is unnecessary, i should just use a patching software that creates a patch by comparing both builds??

推荐答案

什么,你会想要做的就是按照以下步骤操作:

What you will want to do is follow the steps below:

  1. 在您的解决方案,各1个,你有类创建新类的项目。
  2. 添加引用您的主项目,1为您创建的每一个新项目。
  3. 在这一点上一切都应该编译和像亨克说,如果你不改变组件的公共部分,一切都应该罚款。

。你所有的类实现此接口。只要接口不改变,你可以选择你想要对组件和类改变什么(只要你的等级不断实现接口)

If you want to go a step further though, create a new interface and have the interface implement the methods in your classes. Have all your classes implement this interface. As long as the interface doesn't change, you can change anything you want about the assemblies and classes (as long as your classes keep implementing the interface)

这篇关于如何使膜片能/更新,能申请吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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