MOS2010开发基础和集几种开发模型

基础

基本的部署结构图类似如下

clip_image002

clip_image004

创建新的Web Application的原因:

One key reason to create a new web application is to isolate content. Every time a new web application is created, SharePoint creates a new content database. All the data in the sites associated with the web application is stored in this content database.

A second key reason to create a new web application has to do with security. All the execution of all the site collections associated with a web application occurs in the application pool.

开发

编程模型

clip_image006

如下是每种编程模型的主要引用库和结构

Server-side object model

引用的库

The core server-side object model of SharePoint Foundation is served up through an assembly named Microsoft.SharePoint.dll. Once you reference this assembly within a Visual Studio 2010 project, you can start programming against the classes in the server-side object model, such as SPSite, SPWeb, and SPList.

防止GC问题的工具

To check whether your code has been implemented correctly against these coding rules, you can use the free downloadable SharePoint Dispose Checker Tool (available at http://code.msdn.microsoft.com/SPDisposeCheck.

LINQ to SharePoint

One of the most significant new features of Microsoft SharePoint 2010 is the support for LINQ on the server side. This is a satisfying alternative to the classic object model “Server Object Model.”

clip_image002[5]

The first and main task when developing solutions that make use of LINQ to SharePoint is to model the typed entities. You can define these manually, but it is general more useful to use a specific tool, named SPMetal.EXE, which can automatically generate entities for you.

http://msdn.microsoft.com/en-us/library/ee536585.aspx.

Microsoft.SharePoint.dll, Microsoft.SharePoint.linq.dll,

SPMETAL.EXE /web:http://demo /code:MOS.cs /namespace:Dev.MOS2011

Client Object Model

实际使用的都是当前网站集下的/_vti_bin/ 目录下的Client.svc,服务

clip_image004[5]

Managed OM

These assemblies are Microsoft.SharePoint.Client.dll and Microsoft.SharePoint.Client.Runtime.dll. They can be referenced by any 32-bit or 64-bit .NET 3.5 project.

Silverlight

SharePoint14_Root\TEMPLATE\LAYOUTS\ClientBin folder, and you can use it in any Silverlight 3.0 or higher solution by referencing the assemblies

Microsoft.SharePoint.Client.Silverlight.dll and Microsoft.SharePoint.Client.Silverlight.

Runtime.dll.

参考资料

操作基础

Mastering Microsoft SharePoint Foundation 2010 4398565.2395109692

技术基础

Inside Microsoft SharePoint 2010 4397414.2361044022

Microsoft(R) SharePoint(R) 2010 Developer Reference

Office集成

Form Service

Office and SharePoint 2010 User’s Guide 4394547.3633736709

Pro SharePoint 2010 Solution Development Combining .NET, SharePoint, and Office 4394141.5872598620

InfoPath with SharePoint 2010 How-To 4397106.7028333989

Workflow

SharePoint 2010 Workflow in Action

Webparts

SharePoint 2010 WebParts in Action

微软官方架构指南

Designing Solutions for Microsoft SharePoint 2010

代码参考

Cookbook Microsoft SharePoint 2010 Development with Visual Studio 2010 Expert Cookbook 4400215.3231381504

http://www.microsoft.com/downloads/zh-cn/details.aspx?displaylang=zh-cn&FamilyID=cffb14e8-88a9-43bd-87aa-4792ab60d320

SharePoint 2010:专业开发人员评估指南和演练

开发工具和SDK

SDK

SharePointPlatformSDK.exe

Sharepoint Foundation + sp1

独立安装,不要用场安装[需要AD等,在部署时再用],默认使用的是Sql Express数据库

Sharepoint Designer

无代码设计网站使用

通过这个可以了解概念

Infopath

Visio Professional

Office 2010套件包含该软件

开发工具

VS2010

 

 

2012年的雪来的有些晚了,但今天终于还是下了,挺大的雪! 

posted @ 2012-03-18 07:57  2012  阅读(1616)  评论(1编辑  收藏  举报