Posts

Showing posts from January, 2011

LINQ in MOSS 2010

Image
In Moss 2010 we can use LINQ syntax for getting items from list instead of using traditional method using spquery. for that we have to follow some steps: step 1:First we have to run some command for generate some entity classes which Visual Studio 2010 can use to get IntelliSense, and allows for LINQ-based queries to be performed on our sharepoint lists. There is one tool in 14\bin folder folder named SPMetal.exe open CMD run this command SPMetal.exe /web:http://mycustomsite /code:C:\CustomEntityFile.cs TO be continued.........

LINQ: .NET Language-Integrated Query

With .NET Framework 3.5 Microsoft released Language Integrated Query called LINQ. LINQ enables developers to query data sources using a query like syntax with both C# and VB.NET. These data sources can be collections, SQL Server databases, XML, DataSets etc. The .NET framework 3.5 introduces us to the following query keywords; from / in - Specifies the data source where - Conditional boolean expression (e.g. i == 0) orderby (ascending/descending) - Sorts the results into ascending or descending order select - Adds the result to the return type group / by - Groups the results based on a given key There are more keywords that provide additional functionality for more details please go through this msdn link LINQ

Adding and Deploying Solutions with PowerShell in SharePoint 2010

http://www.dotnetmafia.com/blogs/dotnettipoftheday/archive/2009/12/02/adding-and-deploying-solutions-with-powershell-in-sharepoint-2010.aspx