18

Business connectivity solutions runtime and object model deep dive (part 2)

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Business connectivity solutions runtime and object model deep dive (part 2)
Page 2: Business connectivity solutions runtime and object model deep dive (part 2)

Chakkaradeep Chandran (Chaks)Solutions SpecialistIntergen

Business Connectivity Solutions Runtime and Object Model Deep Dive

SESSION CODE: OFS401

Page 3: Business connectivity solutions runtime and object model deep dive (part 2)

3 www.chakkaradeep.com || [email protected] || http://bit.ly/bcs-resources

Agenda

Quick BCS OverviewBCS SolutionsCreating BDC Models

Create, Update, DeleteBCS Object ModelManipulating External ListsMore demos…

Page 4: Business connectivity solutions runtime and object model deep dive (part 2)

4 www.chakkaradeep.com || [email protected] || http://bit.ly/bcs-resources

What is BCSA set of features that provide the capability to connect SharePoint 2010 and Office 2010 applications to any external system:

Line-of-Business system (Microsoft Dynamics, Oracle, or Siebel)Web 2.0 serviceCustom home-grown application

Provides read/write capabilities to those external systemsIt provides out-of-box features, services and tools that streamline development to deeply integrate external data and services

Page 5: Business connectivity solutions runtime and object model deep dive (part 2)

Business Connectivity Services

BCS Client

SharePoint

Business Data Connectivity

External Content Type Repository

External Lists

Dev Platform Enterprise SearchBusiness Intelligence Collaboration SocialEnterprise Content

Management

Web 2.0DBWCFWeb ServiceLOB

Page 6: Business connectivity solutions runtime and object model deep dive (part 2)

Business Connectivity Services

BDC Client Runtime

Client DataCache

DBConnecto

r

WCF/WSConnector

.NET AssemblyConnecto

r

CustomConnecto

r

BDC Metadata Store

Business Data Connectivity (BDC)

BDC Server Runtime

Presentation in SharePoint

SAP ORACLE Siebel

SQLCustom .N

ET assembly

External data

Client to Backend Direct Connection

Page 7: Business connectivity solutions runtime and object model deep dive (part 2)

7 www.chakkaradeep.com || [email protected] || http://bit.ly/bcs-resources

BCS Tooling Support

SharePoint Designer 2010 Visual Studio 2010

Page 8: Business connectivity solutions runtime and object model deep dive (part 2)

10 www.chakkaradeep.com || [email protected] || http://bit.ly/bcs-resources

External Content Types

External Content Type (ECT)

*formerly known as BDC Entity

External Data Source(WebService, DB, .Net

object, LOB system, Web 2.0 service, etc.)

Office Clients

BCS ClientDescribes the schema and data access capabilities of an external data source and its behavior within Office and SharePoint

SharePoint

BCS

CustomerFirstNameLastName

Email

GetCustomer()GetCustomers()

UpdateCustomer()DeleteCustomer()

Page 9: Business connectivity solutions runtime and object model deep dive (part 2)

11 www.chakkaradeep.com || [email protected] || http://bit.ly/bcs-resources

Solution Types

Simple Advanced

• Custom connectivity for data aggregation, transformation, security, etc.• Use custom code to

integrate data into any Office app• Business logic in forms Create reusable components

(UI parts, ECTs, actions)

• Surface data in External Lists

• Connect those lists to Outlook, SPW

Intermediate

• Customize• InfoPath forms• Outlook task pane and

ribbon• Workflow• Web Part Pages

Page 10: Business connectivity solutions runtime and object model deep dive (part 2)

12 www.chakkaradeep.com || [email protected] || http://bit.ly/bcs-resources

No Code Solutions Vs Custom Code

No Code Solutions

External Data Columns

External Lists

Chart Web Parts

Business Data Web Parts

- Business Data List/Related List

- Business Item Data Builder

- Business Data Item

Data Source Type- SQL, WCF Service, .NET Assembly

Custom Code

BDC Object Model

SharePoint Object Model

Client Object Model

Custom Connectors

Page 11: Business connectivity solutions runtime and object model deep dive (part 2)

13 www.chakkaradeep.com || [email protected] || http://bit.ly/bcs-resources

Creating BDC Models in Visual Studio 2010

Page 12: Business connectivity solutions runtime and object model deep dive (part 2)

14 www.chakkaradeep.com || [email protected] || http://bit.ly/bcs-resources

BCS Object Model Overview

BDC object modelsBDC Runtime object model on the server and on the clientBDC Administration object model on the server and BDC Administration Client object model on the client

BCS Cache object model on the clientBCS Solution Packaging object model on the server running SharePoint Server 2010

Not available in SharePoint Foundation 2010.To work with External Lists:

SharePoint List Object ModelClient Object Model

Page 13: Business connectivity solutions runtime and object model deep dive (part 2)

15 www.chakkaradeep.com || [email protected] || http://bit.ly/bcs-resources

BDC Runtime Object Model

Add references the BDC assembliesMicrosoft.BusinessData.dllMicrosoft.SharePoint.dll

Get the BDC ServiceGet the Metadata CatalogGet the EntityCreate the LOBSystem and LOBSystemInstanceExecute the method(s) on the LOBSystemInstance

Page 14: Business connectivity solutions runtime and object model deep dive (part 2)

16 www.chakkaradeep.com || [email protected] || http://bit.ly/bcs-resources

Using the BDC Runtime Object Model

Page 15: Business connectivity solutions runtime and object model deep dive (part 2)

17 www.chakkaradeep.com || [email protected] || http://bit.ly/bcs-resources

Manipulating External Lists

External List Template Id = 600Use SPWeb.Lists.Add(name,description,url, SPListDataSource) to create external listsUse the property HasExternalDataSource to check if a List is an External ListBuild CAML query to retrieve your items

You need a Method tagSpecify the ViewFields

Page 16: Business connectivity solutions runtime and object model deep dive (part 2)

18 www.chakkaradeep.com || [email protected] || http://bit.ly/bcs-resources

Manipulating External Lists

Page 17: Business connectivity solutions runtime and object model deep dive (part 2)

19 www.chakkaradeep.com || [email protected] || http://bit.ly/bcs-resources

Breakout sessions - Wednesday, September 1 16:15 - 17:15OFS401 Business Connectivity Solutions Runtime and Object Model Deep Dive

Breakout sessions - Monday, August 30 17:25 - 18:25OFS209 The new world of SharePoint 2010 Architecture & Administration

Breakout sessions - Wednesday, September 1 10:40 - 11:40OFS307 Office 2010 and SharePoint 2010: The whole is greater…

Breakout sessions - Tuesday, August 31 14:55 - 15:55OFS303 Claims based authentication in SharePoint 2010

Related Content

Page 18: Business connectivity solutions runtime and object model deep dive (part 2)

© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED

OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.