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

简介: 基础 基本的部署结构图类似如下 创建新的Web Application的原因: One key reason to create a new web application is to isolate content.

基础

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

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年的雪来的有些晚了,但今天终于还是下了,挺大的雪! 

相关文章
|
5月前
|
存储 人工智能 运维
2026年第二季度最适合中小企业的小程序开发工具测评分析
2026年第二季度最适合中小企业的小程序开发工具测评分析
|
云安全 安全 网络安全
|
2天前
|
JavaScript API iOS开发
DeepSeek Harness下载、安装、配置一篇搞定(2026整理,送常用插件)
DeepSeek Harness(DSH)是DeepSeek于2026年开源的MIT协议AI Agent框架,支持插件化组装模型、工具、沙箱与UI,兼容主流大模型。本文提供免Node.js的桌面端安装包(Win/macOS),含详细图文教程及热门插件推荐。
|
16天前
|
JSON 程序员 数据格式
最新版Notepad++下载、安装、配置保姆级教程(附官网安装包)
Notepad++ 是一款免费开源、轻量快速的 Windows 文本编辑器,支持多标签、语法高亮、代码折叠与宏录制,体积小、启动快、资源占用低,兼容 x64/x32/ARM 架构,是程序员和文字工作者的高效利器。
3972 1
|
9天前
|
JavaScript 安全 前端开发
Nodejs Brotli decoder 代码执行漏洞 (CVE-2026-111497)10629
Node.js发布安全更新修复Brotli解码器高危RCE漏洞(CVE-2026-111497),建议受影响版本用户立即升级。
2059 2
|
15天前
|
人工智能 API 开发工具
DeepSeek Harness 神插件:白嫖 13 家大厂模型
`dsh-our-free-model` 是 DeepSeek Harness 神级插件:零配置、零API Key、零账号,聚合13家大厂免费模型(含DeepSeek V4.1 Flash、Kimi K3等),支持本地网关、用量看板与自动降级,真正实现“白嫖即用”。
2616 46
|
3天前
|
iOS开发 Docker MacOS
【2026实测】Docker Desktop下载、安装、汉化、配置教程(附官网安装包)
Docker Desktop 是 Docker 官方推出的桌面容器管理工具,集成引擎、CLI、图形界面与 Kubernetes,支持 Win/macOS/Linux。2026 最新版 4.88.1 强化 ARM 原生运行、镜像加速及资源可视化,附中文汉化与国内镜像配置指南。
530 1
|
12天前
|
Web App开发 人工智能 前端开发
2026 年 AI 浏览器怎么选?Ego Lite、Tabbit、Chrome DevTools MCP 深度对比,开发者到底该用哪个?
2026年AI浏览器选型指南:Ego Lite专注多Agent协同(Mac优先),Tabbit国产首选,原生支持Windows与Codex控制;Chrome DevTools MCP非浏览器而是开发者利器,深度集成Console/Network/Performance调试能力,让AI真正“看懂并验证”前端代码。
1512 3
|
10天前
|
开发者 索引
DeepSeekHarness大肥鱼自带插件市场了?加个地址就能用
Open Plugin Market 是一个开放插件索引平台,收录800+优质DSH插件,支持分类浏览、智能推荐与随机发现。无需安装市场,粘贴索引地址即可一键接入,网页版直访 dshopen.org,助力小开发者被看见。(239字)
2089 1
DeepSeekHarness大肥鱼自带插件市场了?加个地址就能用

热门文章

最新文章