[英]ASP.net MVC5 Deployment
I am wondering some point on deploying an Asp.NET MVC5 application to my own server. 我想知道将Asp.NET MVC5应用程序部署到我自己的服务器上的某些观点。
What if it happens, if i add more attributes in one of my model class or add more model class. 如果发生这种情况,如果我在一个模型类中添加更多属性或添加了更多模型类,该怎么办? What should i do for not losing data.
我应该怎么做才能不丢失数据。
Is there any other options shoul i need to perform other than asp.net mvc4 since i could not find any tutorial about deployin asp.net mvc5 with Identity. 除了asp.net mvc4之外,还有其他我需要执行的选项吗,因为我找不到有关Identity的asp.net mvc5部署的任何教程。
What is the best efficient way to change my application view, controller and model on run-time. 在运行时更改我的应用程序视图,控制器和模型的最有效方法是什么。 Can i working on my local PC while using the remote code file and database ?
使用远程代码文件和数据库时,我可以在本地PC上工作吗?
Regards. 问候。
I have a hard time understanding your requirements but for the database part, I would recommend "entity framework migrations". 我很难理解您的要求,但是对于数据库部分,我建议您进行“实体框架迁移”。 It's made handling model changes locally and remotely.
它可以在本地和远程处理模型更改。
http://msdn.microsoft.com/en-us/data/jj554735.aspx http://msdn.microsoft.com/zh-CN/data/jj554735.aspx
I have worked with entity framework migrations a lot but sometimes if you make big changes, such as Foreign keys or enums, the migrations give a problem. 我已经与实体框架迁移进行了大量合作,但是有时如果您进行了大的更改(例如外键或枚举),则迁移会带来问题。 I then started to use a tool from RedGate.com called " Sql Compare ."
然后,我开始使用RedGate.com提供的名为“ Sql Compare ”的工具。 Works better than Entity migrations - now I don't worry about data changes.
比实体迁移效果更好-现在,我不必担心数据更改。 Usually this will not lose data, but if it is going to lose data, it will warn you.
通常,这不会丢失数据,但是如果要丢失数据,它将发出警告。
Best solution to losing data -make backups. 丢失数据的最佳解决方案-进行备份。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.