Share Point 2010 Developer Walk Through Guide

  • View
    288

  • Download
    2

Embed Size (px)

Text of Share Point 2010 Developer Walk Through Guide

. , , URL- - , . , , . , , . . - . . (Microsoft Corporation), 2010. . Microsoft, SharePoint, Visual Studio, InfoPath Visio . .

1

SharePoint 2010

1. - Linq ......................................... 4 1. SharePoint ............................................................................................ 4 2. - LINQ-to-SharePoint ....................... 7 3. SharePoint - ........................................... 10 4. - ................................................................ 12 2. BCS ............................................................................. 17 1. - ................................................................. 17 2. ........................................................................................ 18 3. ............................................................................................................ 29 4. ...................................................................................................... 31 3. Silverlight SharePoint ............... 35 1. Silverlight ................................................................................... 35 2. SharePoint ................. 37 3. - SharePoint Silverlight ........................................ 41 4. SharePoint Silverlight ......................................................................................................................................... 43 1. Silverlight ................................................................................... 43 2. Employee SharePoint Silverlight Graph ........................................................................................................ 47 3. - SharePoint Silverlight .................................................................................................................................................. 50 5. - .............................................................. 54 1. - ...................................................... 54 2. , .................................................. 56 3. .......................................................... 59 6. SharePoint .... 64 1. ................................................................................................... 64 2. , ............................................................................................................................ 66 3. , , ................................................................................................................................. 68 4. . ..................................................................................... 71 5. SPDActivityDemo, SPCHOL305Ex1. ............................................................................................................................................. 76 6. ................................................ 78 7. .................................................................................. 78 8. SharePoint ....................................................................................................................................................... 79 9. Visual Studio ........................... 87 10. SharePoint ................................................. 94 ................................................................................................................ 97

2

SharePoint 2010

, C#, Visual Studio 2010 SharePoint 2010. , , . eLearning: http://msdn.microsoft.com/ru-ru/sharepoint/ee513148.aspx (, ). , , , , C#, VB.NET. sp2010fb@Microsoft.com.

3

SharePoint 2010

1. - Linq : 10 -, DataGrid. : 1. -. 2. - Linq. 3. Linq SharePoint. 4. - SPDataGrid. 1. SharePoint . 1 . 1. Visual Studio 2010, | | Microsoft Visual Studio 2010 | Microsoft Visual Studio 2010. 2. | | . 3. Visual C# | SharePoint | 2010. 4. -.

4

SharePoint 2010

1. - SharePoint 2010

5. SPCHOL200-Ex1. 6. C:\SPHOLS\SPCHOL200\CS\Ex1. 7. . 8. OK. 9. SharePoint . http://intranet.contoso.com/ . . .

5

SharePoint 2010

2. SharePoint

10. Visual Studio SPCHOL200-Ex1 .

3. SPCHOL200-Ex1

6

SharePoint 2010

11. , Visual Studio - VisualWebPart1. VisualWebPart1 VisualWebPart1.webpart.

4. -

12. Title SPLinqDemoTitle, Description SPLinqDemoPart Description. Title Description - . . SPLinqDemoTitle SPLinqDemoPart Description

2. - LINQ-to-SharePoint spmetal.exe - Linq-to-SharePoint. 1. SPCHOL200-Ex1 Windows. 2. Shift - , , :

7

SharePoint 2010

5.

3. , SharePoint 2010: set path=%path%;c:\program files\common files\microsoft shared\web server extensions\14\bin 4. , - Linq-to-SharePoint:spmetal.exe /web:http://intranet.contoso.com /namespace:SPCHOL200_Ex1.VisualWebPart1 /code:SPLinq.cs

. . . 5. Visual Studio. 6. Visual Studio SPCHOL200-Ex1 | .

6.

7. SPLinq.cs :

8

SharePoint 2010

7. SPLinq.cs

8. . 9. C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI . , . , 8. 10. Microsoft.SharePoint.Linq.dll.

9

SharePoint 2010

8.

11. OK, . 3. SharePoint - , - SharePoint. 1. VisualWebPart1 VisualWebPart1UserControl.ascx. 2. Visual Studio Visual Web Part. 3. , .

10

SharePoint 2010

: ASP.NET | spchol200_ex1_spgridview 4. Visual Web Part :

9. Visual Web Part

5. VisualWebPart1UserControl.ascx . 6. using :using Microsoft.SharePoint.Linq; using Microsoft.SharePoint; using System.Linq;

: My Code Snippets | spchol200_ex1_namespaces 7. Page_Load :var dc = new SPLinqDataContext(SPContext.Current.Web.Url); var Employees = dc.GetList("Employees");

11

SharePoint 2010

var empQuery = from emp in Employees where emp.Project.DueDate < DateTime.Now.AddMonths(6) select new { emp.Title, emp.JobTitle, ProjectTitle = emp.Project.Title, DueDate = emp.Project.DueDate.Value.ToShortDateString() }; spGridView.DataSource = empQuery; spGridView.DataBind();

: My Code Snippets | spchol200_ex1_pageload 4. - 1. SPCHOL200-Ex1 . - SharePoint: http://intranet.contoso.com

10. -

2. Internet Explorer : http://intranet.contoso.com 3. , . : Administrator : pass@word1 4. , SharePoint .

12

SharePoint 2010

11. SharePoint

12. SharePoint

5. -, - .

13

SharePoint 2010

13. SharePoint -

6. . 7. - - SPLinqDemoTitle.

14. - SPlinqDemoTitle

, -. , -.

14

SharePoint 2010

.

15.

8. , - . - SPLinqDemoTitle .

15

SharePoint 2010

16. - SPLinqDemoTitle

9. , , , . .

17. SharePoint

10. Internet Explorer. 11. Visual Studio 2010. , Linq to SharePoint SharePoint. 16

SharePoint 2010

2. BCS - Visual Studio 2010 . 1. - 1. Visual Studio 2010, | | Microsoft Visual Studio 2010 | Microsoft Visual Studio 2010; | | . 2. Visual C# | SharePoint | 2010 |, -. 3. BDCEx1.

18.

4. C:\SPHOLS\SPCHOL304\CS\Ex1. 5. OK.

17

SharePoint 2010

6. URL- http://intranet.contoso.com. 7. .

19. SharePoint

8. . 2. 1. | . , Entity1.cs Customer.cs, Entity1Service.cs CustomerService.cs. :

18

SharePoint 2010

20. Visual Studio

2. Customer.cs, . Customer . , -. , Identifier1 CustomerId , , Identifier1. , .

public public public public

Int32 CustomerId { get; set; } string Message { get; set; } string FirstName { get; set; } string LastName { get; set; }

: My Code Snippets | spchol304_ex1_customer

21. Customer

19

SharePoint 2010

3. BCS 1. BdcModel1.bdcm, - .

22. , BDCModel1.bdcm -.

2. Entity1, .

23. Entity1

3. Entity1 Customer, Entity1 F2 ( ). 4. Identifier1 F4, . Identifier1 CustomerId System.Int32.

20

SharePoint 2010

24.

5. - Visual Studio | BDCModel1 | BDCModel1 | Customer | ReadList | returnParameter. Entity1List, .

25. - Entity1List

6. Entity1List CustomerList.

21

SharePoint 2010

7. - CustomerList.

26. - Entity1

8. Entity1 Customer. - Customer Identifier1 CustomerId TypeName System.Int32.

22

SharePoint 2010

27. Identifier1

9. - Customer .

28. Customer

10. TypeDescriptor Name FirstName. 11. - Customer