Hands on LINQ to SharePoint

Slides:



Advertisements
Similar presentations
Introduction to NHibernate By Andrew Smith. The Basics Object Relation Mapper Maps POCOs to database tables Based on Java Hibernate. V stable Generates.
Advertisements

Infowise Ultimate Forms vs. InfoPath
Query Methods (SQL). What is SQL A programming language for databases. SQL (structured Query Language) It allows you add, edit, delete and run queries.
Michael Pizzo Software Architect Data Programmability Microsoft Corporation.
.NET 3.5 – Mysteries. NetFx Evolution NetFx 1.0 C# 1.0, VB 7.0, VS.NET NetFx 1.1 C# 1.1, VB 7.1, VS 2003 NetFx 2.0 C# 2.0, VB 8.0, VS 2005 NetFx 3.0 C#
Hilton Giesenow - The MOSS Show Overview of the SharePoint 2010 Developer Platform SESSION CODE: OFC308.
The SQL Language Presented by Reggie James, Isel Liunoras, and Chris Rollins.
WCF RIA Services - Querying and Updating Data SILVERLIGHTSHOW.NET WEBINARS SERIES BRIAN NOYES, CHIEF ARCHITECT, IDESIGN INC 2 FEB 2011.
1 | SharePoint Saturday St. Louis 2015 Enterprise Content Management – SP /22/ PM CST AJ AngaJala, MS |
Travis Chen Senior Developer 10 Nov 2011 MS Dynamics CRM 2011 Integration with SharePoint.
OFFICE 365 GROUPS Administrative look into Groups July 9, 2015.
Discover, Master, InfluenceSlide 1 SQL Server Compact Edition and the Entity Framework Rob Sanders Readify.
SQL Server 2008 Basmah AlQadheeb-213 MIS What is a Database ? A database is a collection of Data that is organized so that it can easily be accessed,
Introduction –All information systems create, read, update and delete data. This data is stored in files and databases. Files are collections of similar.
Native Support for Web Services  Native Web services access  Enables cross platform interoperability  Reduces middle-tier dependency (no IIS)  Simplifies.
Agenda Principal Consultant, SharePoint Development Team Lead John Ramminger Linked In:
Chapter 15: Using LINQ to Access Data in C# Programs.
What SharePoint Admins Should Know About SQL Server Victor Isakov Database Architect / Trainer Interactive Theatre AIT005.
About Me I have been working with sharepoint since 2008 My blog:
Todd Klindt. New downloads Infrastructure update Adds search improvements from Search Server Has Content Deployment fixes Does NOT include SP1, install.
Developing Applications for SharePoint 2010 Chris Keyser Principal Program Manager patterns & practices
GOAL User Interactive Web Interface Update Pages by Club Officers Two Level of Authentication.
AUC Technologies LINQ (Language Integrated Query) LINQ Presented By : SHAIKH SHARYAR JAVED Software Engineer (Daedalus Software Inc.) Technology Teacher.
By: Luis Carranco CIS764 - Fall  What is LINQ  Architecture  How does it work?  Samples/Demo  Why to use LINQ? 2.
DEV14 – Building Business Dashboards: Excel Services, KPIs and Report Centers Darwin Schweitzer Enterprise Technology Strategist
Information Systems Today: Managing in the Digital World TB3-1 3 Technology Briefing Database Management “Modern organizations are said to be drowning.
INTRODUCTION TO ADDING MATERIALS TO GREENSTONE Heidi Pettitt Technical Services Librarian Candidate.
IMS 4212: Constraints & Triggers 1 Dr. Lawrence West, Management Dept., University of Central Florida Stored Procedures in SQL Server.
Course Agenda Deep Dive into the Building Blocks and Services of the SharePoint Platform Module 1: Developing Advanced Workflow Scenarios in Office 365.
SPEasyForms: The Free Forms Designer Solution for SharePoint Joe McShea Owner/Software Architect IntelliPoint Solutions LLC.
Introduction to.NET Florin Olariu “Alexandru Ioan Cuza”, University of Iai Department of Computer Science.
SQL Introduction SQL stands for “Structured Query Language” and can be pronounced as “SQL” or “sequel – (Structured English.
Start-SPPowerShell – Introduction to PowerShell for SharePoint Admins and Developers Paul BAker.
Part 1: Overview of LINQ Intro to LINQ Presenter: PhuongNQK.
St. Louis Day of Dot Net 2011 Jump Start: SharePoint Development
Business Directory REST API
Data Virtualization Demoette… Custom Java Procedures
LINQ for SQL SQL Saturday May 2009 David Fekke.
Database Mysql Hayk Avdalyan.
Upgrading from BDC to BCS
Document & Web Content Management
Language Integrated Query: (LINQ) An introduction
LiNQ SQL Saturday David Fekke.
Chapter 12 Information Systems.
Searching Business Data with MOSS 2007 Enterprise Search
Introduction With TimeCard users can tag SharePoint events with information that converts them into time sheets. This way they can report.
Office 365 Development.
Design and Consume DataWindows in Visual Studio 2005
SharePoint Saturday Omaha April 2016
Searching Business Data with MOSS 2007 Enterprise Search
MIS Professor Sandvig MIS 324 Professor Sandvig
Populating a Data Warehouse
Welcome SharePoint data access and LINQ to SharePoint
Entity Framework Core.
SharePoint & jQuery: Better Together
SharePoint data access and LINQ to SharePoint
Introduction to SharePoint Framework
Populating a Data Warehouse
Populating a Data Warehouse
Tech Ed North America /1/2019 2:58 AM Required Slide
Pablo Castro Software Architect Microsoft Corporation
Microsoft SharePoint Conference 2009 Jon Flanders
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Mike Ammerlaan Program Manager Microsoft Corporation
Maxim Lukiyanov Program Manager Microsoft Corporation
MIS Professor Sandvig MIS 324 Professor Sandvig
ADO.NET Entity Framework
WCF Data Services and Silverlight
Entity Framework & LINQ (Language Integrated Query)
SharePoint 2007 Developer Overview Collaboration BI Features
Presentation transcript:

Hands on LINQ to SharePoint Welcome Hands on LINQ to SharePoint Blog: http://blog.sharepointsite.co.uk Twitter: @PaulBeck1 Email: paul.beck@sharepointsite.co.uk Saturday, May 14, 2011 from 08:45 PM - 13:00 PM – Cobham South West London

Final Product Download the code What we are building http://blog.sharepointsite.co.uk/2011/05/sharepoint-retreat-south- west-london.html What we are building

Final Product 2 related lists Orders and Customers

LINQ to SharePoint LINQ to SharePoint/SPMetal CAML LINQ to SharePoint = SPLINQ = SPMetal Proxy LINQ to SharePoint/SPMetal Server OM CAML List SharePoint List data History of LINQ language-integrated query - extends C# and with native language syntax for queries and provides class libraries. LINQ syntax, lambda & strongly-typed

16/06/2018 SPMetal.exe SPMetal.exe is the tooling to generate the LINQ to SharePoint proxy code Generates strongly typed classes SPMetal.exe in 14\bin Syntax: spmetal /web:<url> /code:<file> /parameters:<file> Use parameters file, otherwise a class will be generated for each visible list, only show id and version from the hidden fields More flexible CKSDev for generating the LINQ to SharePoint proxy C# or VB.NET

Issues with LINQ to SharePoint “Inefficient” queries – Querying data, Joins .ToList() - Non CAML compliant queries need to work around using LINQ to Objects. Add hidden fields, hide lists (parameters file) Only supports SP2010 foundation fields Attachments, managed metadata, custom site columns requires ICustomMapping. SPMetal cannot query cross site collections External Content Types are not supported

16/06/2018 Selecting & Update Similar to T-SQL Lamda expressions

Insert

Delete

Display CAML Generated Code

Custom Site Columns The business entity class has to implement the ICustomMapping interface

Thank-you Blog: http://blog.sharepointsite.co.uk Twitter: @PaulBeck1 Email: paul.beck@sharepointsite.co.uk Reference & Thanks: Paul Schaeflein Todd C. Bleeker Serge Luca Mostafa Elzoghbi Ted Pattison