IT tutorials
 
Technology
 

Sharepoint 2010 : Connecting to BCS Data Using SharePoint Designer (part 1) - Associations, Stereotypes

1/16/2014 2:59:00 AM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

BCS data is surfaced in SharePoint via external content types. Regardless of the mechanism used to connect to the data, whether it’s via an out-of-the-box connector such as ADO.NET or WCF or via a connectivity assembly or custom connector, the end result is a series of external content types, each of which represents a single entity definition in the source system. So, for example, in an underlying CRM system, entities may be defined for Customer, Address, and Sales Order.

1. Associations

Naturally, in any data system, entities have relationships—for example, a Customer entity may be related to a Sales Order entity. BCS allows for the modeling of such relationships using associations. It’s possible to create associations between any two external content types provided they have appropriate identifiers.

To take our CRM example a bit further, let’s say we also had an ERP system with stock information on individual products. The product stock level was defined in an entity called Product in the ERP model. If the Sales Order entity in our CRM model contained a ProductId field of type Int32 and the Product Entity in our ERP model contained an identifier named ManufacturedProductId, also of type Int32, it would be possible to create a relationship between these entities regardless of the fact that they exist in separate systems.

2. Stereotypes

You may wonder how a system that’s capable of retrieving data from practically any data source works. In general programming terms, where an object must communicate with other objects of unknown type, a common standard is adopted, either via the implementation of a known interface or via inheritance, which requires that all objects inherit from a common base class. The BDC service, the engine behind BCS, employs a similar mechanism known as stereotyping.

You may also be wondering, why call it stereotyping? Why not use an established term that makes more sense to developers? There is a very good reason for this: The BDC service is all about defining the connections between two systems, not physically making the connections. None of the code in the BDC service actually sends or receives data between A and B; instead, the BDC service simply delegates the request to the appropriate endpoint. As a consequence, there is nowhere to implement an interface and no abstract classes to inherit from—it’s all about metadata. Stereotyping denotes a particular endpoint and configuration as being appropriate for a particular operation. For example, one important stereotype is SpecificFinder. A model may contain metadata that specifies that requests should be sent to the ReadRecordFromDataBase function in the MyBDCModel assembly whenever a SpecificFinder operation is executed.

The BDC Service defines a number of stereotypes covering every data access operation supported by the platform. Not all of these operations are commonly required, although the following operations are used in most models to provide create, read, update, delete, and query (CRUDQ) functionality:

OperationDescription
CreatorCreates a new item in the external data store.
SpecificFinderReturns a single specific item from the underlying data store. The parameters for this operation are defined by the identifiers that are associated with the external content type.
UpdaterUpdates items in the external data store.
DeleterDeletes items in the underlying data store.
FinderReturns a list of items from the external data store usually based on some criteria.

The following operations provide additional functionality for use in specific circumstances:

OperationDescription
AccessCheckerRetrieves the permissions of the calling security principal for each of a collection of items.
AssociationNavigatorRetrieves a collection of items that are associated with a single specified item.
ScalarCalls a method on the external system that returns a single value (for example, use a scalar operation to get the total sales made to date from the external system).
AssociatorAssociates two specific items.
BinarySecurityDescriptorAccessorRetrieves a sequence of bytes from an external system. The byte sequence describes a set of security principals and the associated permissions of each security principal for a specified item.
BulkAssociatedIdEnumeratorRetrieves pairs of source and destination items for a specified association.

OperationDescription
BulkAssociationNavigatorRetrieves destination items that are associated with multiple specified items for each of the sources of the specified association.
BulkIdEnumeratorRetrieves a set of instance IDs and a small subset of important fields of items that are identified by the specified set of Instance IDs.
BulkSpecificFinderReturns a set of instances of an entity, given a set of instance IDs.
ChangedIdEnumeratorRetrieves a collection of items that were modified in an external system after a specified time.
DeletedIdEnumeratorRetrieves a collection of items that were deleted from an external system after the specified time.
DisassociatorRemoves an association between two specified items.
GenericInvokerPerforms a specific task in an external system.
IdEnumeratorReturns a collection of identifiers for entities of a specific type. Works similar to the Finder operation, except that IdEnumerator returns identifiers only.
StreamAccessorRetrieves a field of an item as a data stream of bytes.
 
Others
 
- Sharepoint 2010 : Business Connectivity Services - Business Data Catalog in MOSS 2007
- Sharepoint 2013 : Creating List Views - Specify How Folders Will Be Used in a View
- Sharepoint 2013 : Creating List Views - Specify a Different Item Style for a View
- Sharepoint 2013 : Creating List Views - Specify Totals for a View
- Sharepoint 2013 : Creating List Views - Specify How Items in a View Are Grouped
- Sharepoint 2013 : Creating List Views - Specify How Items in a View Are Filtered
- PowerShell for SharePoint 2013 : Work Management Service (part 2) - Get the Identity of the Work Management Service Application Proxy,Get a Specific Work Management Service Application Proxy Instance
- PowerShell for SharePoint 2013 : Work Management Service (part 2) - Configure the Search Query Threshold , Configure the User Synchronization Per Server
- PowerShell for SharePoint 2013 : Work Management Service (part 1) - Get a Specific Work Management Service Application Instance , Configure the Refresh Threshold
- Sharepoint 2013 : Creating List Views - Specify How Items in a View Are Sorted
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us