Introduzione a SharePoint 2010 per sviluppatori (.NET Campus 2011)
1. Introduzione alla
programmazione
in SharePoint
Giuseppe Marchi
SharePoint MVP – Consultant/Trainer
PeppeDotNet.it
info@peppedotnet.it
SharePointCommunity.it
3. Agenda
• SharePoint 2010
– overview
– architettura
• SharePoint 2010 per sviluppatori
– Sviluppo web part
– Accesso ai dati
4. SharePoint 2010
• Piattaforma di
– Collaborazione
– Gestione processi
– Gestione documentale
– Integrazione tra piattaforme
– Social networking
– Ecc..
• Programmabile/estensibile
– Basata su Microsoft ASP.NET
– Estendibile scrivendo codice .NET
– Customizzabile utilizzando VS2010 /
SharePoint Designer 2010
5. Scenario della piattaforma
Ribbon UI
Business Connectivity Services SharePoint Workspace
InfoPath Form Services SharePoint Mobile
External Lists Office Client and WAC Integration
Workflow Standards Support
Tagging, Tag Cloud, Ratings
SharePoint Designer
Social Bookmarking
Visual Studio
Blogs and Wikis
API Enhancements
My Sites
REST/ATOM/RSS
Activity Feeds
Profiles and Expertise
Org Browsing
Mobile Support
Enterprise Content Types
PerformancePoint Services Enterprise Metadata and Nav
Excel Services Document Sets
Charts Multi-stage Disposition
Visio Services Audio and Video Content Types
Web Analytics Remote Blob Storage
SQL Server Integration/Gemini List Enhancements
6. Search InfoPath Service Visio Service
Document ID/Document Set Word Automation Service Access Service
Excel service Powerpoint Broadcast Service Managed Metadata
User profiles Web Analytics Service Performance Point
SharePoint Server 2010
Alerts External data Files / Docs Queries / Views Mobile support Webs / Site Coll.
Columns / Fields Event Handling Health rules Pages, UI & Ribbon Solutions Workflows
Content types Features Lists / Doc libs Perf. Monitoring Web parts Admin / Manag.
SharePoint Foundation 2010
.NET Framework 3.5 e ASP.NET 3.5 SP1
Internet Information Services 7.x
Windows Server 2008/R2 (64 bit) SQL Server 2005 SP3 (64 bit)
Windows 7/Vista SP1/SP2 (64 bit) SQL Server 2008/R2 (64 bit)
8. Versioni del prodotto
• SharePoint Foundation 2010
– Gratuito
– Basta avere delle license Windows Server
• SharePoint Server 2010
– A pagamento
– Funzionalità evolute
– Si basa su SharePoint Foundation 2010
• SharePoint Server FAST 2010
– A pagamento
– SharePoint Server 2010 + FAST
• Versioni «on-line» dei prodotti
– Office 365 e SharePoint Online (tutt’ora in beta)
9. Competenze richieste
• SharePoint 2010
– Architettura
– Sicurezza
– Object Model
• Sviluppo su .NET 3.5
– Workflow, AJAX, Silverlight
• ASP.NET 2.0 (o superiore)
– Master pages, Web control, Web parts, Provider
Model, Authentication, ecc...
• LINQ, ADO.NET di base
11. Sviluppo di web part
• In sostanza: “è un pezzo di pagina”
• Web part Web control ASP.NET
• Nuova classe che eredita da:
– System.Web.UI.WebControls.WebParts.WebPart
– Microsoft.SharePoint.WebPartPages.WebPart
• Specifica di proprietà
• Ovverride di alcuni metodi
– CreateChildControls
– Render
– Ecc...
• Aggiunta nella pagina ed esecuzione
12. Sviluppo di web part
• Per l’utente
Web Part 1 • UI Flessibile
Web Part 2
• Contenuto personalizzato
ZONA 1 • Per lo sviluppatore
• Riutilizzo di codice
• Personalizzazione della UI
• Aggiunta funzionalità
Web custom
Part 3 Web
Part 4
ZONA 2
13. Supporto in Visual Studio 2010
• Visual Studio 2010 supporta nativamente lo
sviluppo per SharePoint !
– Template di progetto/elemento
• Posso sviluppare anche su Windows 7 / Vista (SP 2)
• Designer grafico per Web Part
– Visual Web Part
• Package in soluzioni SharePoint (.wsp)
– Package Designer
• Deploy automatico e debug
• SharePoint Explorer
• Mapped folder