Sharepoint支持MVC [英] Sharepoint to support MVC

查看:156
本文介绍了Sharepoint支持MVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是sharepoint开发人员和asp.net mvc开发人员,而且事情是,与sharepoint相比,我更喜欢开发Asp.net MVC Web应用程序.这很痛苦,但现实是,对于开发人员来说,共享点是完全令人沮丧的,对于某些人来说可能并非如此,但对我来说,大多数时候,共享点是令人沮丧的,尽管我仍然喜欢开发共享点.引入MVC时,许多开发人员都接受了它,直到现在,仍然有很多人渴望它.至于我所看到的,如果MVC将与Sharepoint完全集成,我可能会说Sharepoint可以发挥很大的作用,并感谢MVC.

I am a sharepoint developer and an asp.net mvc developer and the thing is I prefer developing Asp.net MVC web applications compare to sharepoint. It hurts but reality bites that sharepoint is totally frustrating for developers or maybe not for some of you but for me most of the time it does although I still love developing sharepoint. When MVC was introduced many developers embraced it and until now many are still craving for it. As to what I can see, if MVC will be fully integrated with sharepoint I could possibly say that sharepoint can make a big difference and say thanks to MVC.

我的问题是,sharepoint是否有机会与MVC集成?共享点的哪一部分可能会使MVC无法集成?您能否给出一个重要的原因,为什么Sharepoint对MVC来说是一个大问题?

My question is could sharepoint ever have the chances to be integrated with MVC? What part of sharepoint could possibly fail MVC to be integrated? Could you give a big reason why Sharepoint is a big NO to MVC?

推荐答案

SharePoint是一个非常大的,复杂的Web应用程序,具有庞大的安装基础,并且无法控制最终用户的自定义.如果没有充分的理由就无法从头开始重写这种系统,即使有充分的理由,任何尝试也会注定要失败.

SharePoint is a really big, complex web application with a huge install base and no control over end user customization. That sort of system can't be rewritten from scratch without a really good reason, and even when there is a really good reason, any attempt to do so is doomed to failure.

虽然有一些方法可以将MVC与SharePoint一起使用.在正确的服务器上运行的任何.net应用程序都可以访问SharePoint API.您也可以在SharePoint Web部件/页面中包装MVC视图.要使Web窗体视图引擎在SharePoint下运行,就需要进行某种黑客攻击,这种黑客攻击永远不会被公司基础设施人员所利用,但是在SharePoint中托管Razor视图相对容易设置.

There are ways you can use MVC alongside SharePoint though. Any .net application running on the right server can access the SharePoint API. You can also wrap mvc views in SharePoint web parts / pages. Getting the web forms view engine to run under SharePoint requires the sort of hacking that will never get past corporate infrastructure people, but hosting Razor views in SharePoint is relatively easy to set up.

这篇关于Sharepoint支持MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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