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
How to Troubleshoot Apps for the Modern Connected Worker
SharePoint Saturday Dayton 2012
1. SharePoint Saturday
Dayton, Ohio
June 30, 2012
Advanced BDC/BCS Development
Scott Brickey
Strategic Data Systems
2. General Information
• Tweet it Out!!
– Hashtag for this event: #SPSDayton
– Follow us: @SPSDayton
– Include your presenters
• Check out SPTV
– Tweets will display throughout the day on the
screens.
– Footage will be shown at http://mysp.tv
3. 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
4.
5. 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
7. Built In Connectors and Tools
• Connectors
– Web Service / WCF Service
– SQL Database
– .Net Assembly
• Tools
– SP Designer 2010
– BDC Metaman
8. 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
9. .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
10. 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!)
11. Operations
• Finder
– SELECT ALL
• SpecificFinder
– SELECT by Primary Key
• IDEnumerator
– SELECT ALL Primary Keys
– Required for Search Indexing
• StreamAccessor
• AccessChecker
• Creator
• Updater
• Deleter
13. 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
16. SharePoint Saturday Dayton has been made possible because
of generous sponsorship from the following friends…
17. SDS SharePoint Library on CodePlex
http://SDSSharePointLibrary.codeplex.com/
• Access Checker
• File Upload Web Part
• Replace Document
• SP Designer Workflow Conditions
• More to come!
– SP List BCS Connector
– Password Change Web Part
– Xml SiteMap
18. Questions and Evals…
• Fill out your evaluations to receive
– Parking Pass
– SPS Dayton T-Shirt
• Scott.Brickey@sds-consulting.com