Category Archives: LINQ to SharePoint

Use “LINQ to SharePoint” to query SharePoint lists and libraries with “Managed Metadata Column”

This is the search page we are going to create: Data is from the following lists/library: 1. Train Feedback (attendees/users submit feedback forms for a course in “Training Records”) with lookup columns to lists: Training Records and Users 2. MiTek … Continue reading

Posted in LINQ to SharePoint, SharePoint 2010, Visual Studio 2010 | Leave a comment

Using SPMETAL to create entities

Create a batch file: SET SPMETAL=”C:\PROGRAM FILES\COMMON FILES\MICROSOFT SHARED\WEB SERVER EXTENSIONS\14\BIN\SPMETAL.EXE” %SPMETAL% /web:http://localhost /namespace:yourNameSpace /code:yourCode.cs /user:yourUserName /password:yourPassword Pause Run the batch file and it will generate a “yourCode.cs” file in your current folder. Include this cs file into your project, … Continue reading

Posted in LINQ to SharePoint, SharePoint 2010 | Leave a comment