سؤال

قد يبدو هذا متطرفا بعض الشيء، ولكن الآن يتم عرض الراحة / CSOM API بالكامل، لماذا لا تكتب فقط تطبيقات الويب في أي إطار كنت مرتاحا مع الاستفادة من الراحة / CSOM API بدلا من الإزعاج مع البرمجة البيزنطية SPتقنيات نموذج العلامات التجارية؟هل تحتاج التطبيقات إلى المشاركة على الإطلاق؟ماذا عن مواقف المجال المتقاطعة؟

لذلك إذا كنت أكثر راحة باستخدام مكدس MS، يمكنني كتابة بعض تطبيقات MVC ASP.NET باستخدام API REST API للاتصالات الجانبية للخادم في C # و CSOM في المستعرض باستخدام JavaScript.

هل كانت مفيدة؟

المحلول

If what you want to do can be done using REST / CSOM, then by all means, go for it, that's what MS is aiming for with the app model. Not everything that can be done using Server object model & farm solutions etc. can be accomplished that way, however.

If your question is why not just use SharePoint as your back end and not use the UI and re-write a whole web app on top of that, then perhaps you should just skip SharePoint and use a DB as your back end.

نصائح أخرى

There is a hybrid approach where you use SharePoint's documents storage, lists, workflow engine, account authentication/authorization, and web services with a highly customized UI. James Love mentions this in his comments to Igaud's answer.

I have found this approach to be very successful, especially to users who for some reason have a bad taste in their mouth from a previous, poorly architected SharePoint deployment. This approach gives the developers full control over the UI and can really increase perceived performance while helping the developers to rapidly develop highly customized line-of-business applications without having to build their own services, account management, content management systems.

With PS2013 and app model, you are essentially building a solution outside of SharePoint (provider hosted, or auto hosted) and then utilize the OAuth and cross-domain integration infrastructure to access SharePoint data. You could use any technology stack that you want here, and then rely on either JavaScript CSOM or SP REST API to accomplish your goals.
If you goal is just to build a data driven application, then SharePoint should be your persistence layer just because; it's a huge overkill.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى sharepoint.stackexchange
scroll top