Code for the .Net Assembly Connector can be found at: http://sbrickey.com/Tech/Blog/Post/SharePoint_BCS_-_Sample_Net_Assembly_Connector
Code for the Custom Connector (SPList) will be posted at: http://sdssharepointlibrary.codeplex.com
The Codex of Business Writing Software for Real-World Solutions 2.pptx
SharePoint Saturday Louisville 2012
1. SharePoint Saturday
Louisville, Kentucky
July 28, 2012
Advanced BDC/BCS Development
Scott Brickey
Strategic Data Systems
2. Strategic Data Systems
SDS SharePoint Custom Solutions
Count on our Agile development and expert coding experience to create an optimal
solution for your unique SharePoint application and integration needs.
· Workflow & InfoPath Forms for Business Process Automation
· SharePoint Reports & BI Integration
· Portals & Collaboration
· Content Management
*Agile Practices for proven faster delivery, higher quality, & increased business value.
For twenty years, SDS has solved enterprise development challenges using coding
best practices. We deliver required functionality with
· Exceptional code quality
· Maintainability
· Reliability
3.
4. What is BCS and what does it do?
• Business Connectivity Services
– Formerly the Business Data Catalog
• Business Data Catalog features
– Required SharePoint Enterprise Edition
– READ from the external system
– Supported by SharePoint Search
• New in BCS
– Supported in SharePoint Foundation
– READ + WRITE support
6. Built In Connectors and Tools
• Connectors
– Web Service / WCF Service
– SQL Database
– .Net Assembly
• Tools
– SP Designer 2010
– BDC Metaman
7. Custom Code with BDC/BCS Connectors
• .Net Assembly Connector
– BCS Object .Net Class
– BCS Operation .Net Method
– Base (template) model file + SPD model file
• Custom Connector
– Class which implements
• ISystemUtility – BCS connector
• IAdministrableSystem – Configuration options
– Single model file
8. .Net Assembly Connectors
• DLL stored in BDC database, automatically
installed on clients
• One-to-one mapping between .Net
objects and BDC/BCS objects
– Code should be static
• No awareness of metadata model files
9. Custom Connectors
• DLL installed into SP, manual install onto
clients
• Custom data mapping of BDC/BCS objects
– Code can be more flexible
• Awareness and access to Model file
• Multiple security options available
– Revert To Self (system)
– Passthrough (user)
– SSO / Secure Store
– Configuration parameters (cleartext!)
10. Operations
• Finder
– SELECT ALL
• SpecificFinder
– SELECT by Primary Key
• IDEnumerator
– SELECT ALL Primary Keys
– Required for Search Indexing
• StreamAccessor
• AccessChecker
• Creator
• Updater
• Deleter
12. References
• Expert WSS 3 and MOSS 2007 Programming
– Chapter 13, Pages 655 – 790
• Differences Between using the .NET Assembly
Connector and Writing a Custom Connector
http://msdn.microsoft.com/en-
us/library/ee554911.aspx
• How to: Publish a .NET Connectivity Assembly to
the BDC Metadata Store
http://msdn.microsoft.com/en-us/library/ff464392
• Code Snippet : Implementing a Custom Connector
http://msdn.microsoft.com/en-
us/library/ff464382.aspx
14. General Information
• Tweet it Out!!
– Hashtag for this event: #SPSLouisville
– Follow us: @SPSLouisville
– Include your presenters
• Check out SPTV
– Man on the street interviews…
– Footage will be shown at http://mysp.tv
15. Tonight’s SharePint is generously sponsored by
SharePint is being held right here at the Marriott
immediately following the event. Visit the
Rackspace booth for your ticket.
For each unused drink ticket turned back in, a $5
donation will be made to charity.
18. Clean-Up Items
• Fill out your evaluation forms!
• Visit the Dugout for a sneak
peak of SharePoint 2013 and
Networking.
• See you back at Home Plate for
the Closing and Raffles!!
• Scott.Brickey@SDS-Consulting.com
19. Lorum Ipsum Dolor Titleus Maximus
• Fourscore and Seven Years Ago
• Our Fathers Brought Forth Upon This
Continent
• A New Nation