如何在asp.net mvc 4 razor中维护应用程序编辑版本控制? [英] how to maintain application edit version control in asp.net mvc 4 razor?

查看:74
本文介绍了如何在asp.net mvc 4 razor中维护应用程序编辑版本控制?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用asp.net mvc 4 razor创建了一个应用程序。与任何其他应用程序一样,它也具有添加/编辑/删除功能(CRUD操作)。此应用程序将由多个用户使用。那么,如何在用户编辑后保存和显示该应用程序的版本并保存此应用程序。



提前致谢。

I have created an application using asp.net mvc 4 razor. Like any other application it also has add/edit/delete functions (CRUD operations). This application is to be used by more than one user. So, how can I store and display versions of this application after user edit and save this application.

Thanks in advance.

推荐答案

所以我理解应用程序就是你的实体,你有CRUD操作。

每次用户编辑然后保存对这个实体的更改你必须更新存储版本信息的数据。您可以拥有以下3个新属性:UpdateDate,UserID和VersionNumber;并且在您的数据库中,您应该有类似的字段来存储更改。
So I understood that "application" is one your entity and you have CRUD operation for it.
Each time an user edit then save its changes on this entity you have to update the data that stores version information. You could have for this 3 new properties like: UpdateDate, UserID and VersionNumber; and also in your database you should have similar fields to store the changes.


这篇关于如何在asp.net mvc 4 razor中维护应用程序编辑版本控制?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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