Posts

Showing posts from May, 2015

Getting started with LINQ in C#

What is LINQ? LINQ stands for Language Integrated Query. LINQ defines keywords that you can use to select, filter, sort, group, and transform data.

The minor miracle of LINQ is that different LINQ providers allow these keywords to work with different types of data.

LINQ to Objects, LINQ to DataSet, LINQ to XML, LINQ to SQL, LINQ to Entities.

How to write LINQ-
Suppose there is a List of Product.
List<Product> product = new List<Product>();
Create object and add items to the List.
LINQ to get all product starts with Letter C.
var result = from Product in product
                      where Product.productname.StartsWith("C")
                      select Product;

All LINQ expressions must have a  from clause that indicates the data source and a  select clause that indicates the data you want to retrieve
var result = from Product in product .....;


Filter data with LINQ

var result = from Product in product  
          where Product.unitavailable > 0 && P…

SharePoint 2010 Search

Crawler: Crawling is the process of gathering data from content sources and storing it in databases for use by the query server. Indexer:Indexing is the process of turning data gathered by the crawler into logical structured data that is usable by a search engine. This process is the second key component to any search engine. The indexer is responsible for making sense of crawled data. The indexer also collects custom metadata, manages access control to containers, and trims the results for the user when interfacing with the search engine. Query Processor:The query processor is the third major component of the search architecture. The query processor is the portion of the search architecture that users directly interface with. It is what accepts queries entered into the search box, translates them into programmatic logic, delivers requests to the index engine, and returns results. Databases:The fourth and final components of the search infrastructure are databases. Almost all data in Sha…

Caching in ASP.NET

Cache means to store it in a temp memory for future use. Caching is often used to store information that’s frequently served to users in a faster manner.
In this blog, I will write about Caching in ASP.net.

C# code to create, update and delete SharePoint List items

In this blog, we will perform Create, Update and Delete on SharePoint list items using C# code. You may be interested in reading some of the important blogs - CAML Query in SharePoint, SharePoint 2013 Tutorial, SharePoint 2013 important interview questions.

All about Web Service, SOAP and RESTful Service

In the previous blog, we have seen "What is SOA (Service Oriented Architecture)?"
In this blog, we will see in details about Web Services, SOAP-based web service, and RESTful web service. You may also see one of my blog WCF vs Web Services.