Browse by Tags

All Tags » Linq (RSS)

Deferred vs Immediate execution in Linq by Jalpesh P. Vadgama

In this post, We are going to learn about Deferred vs Immediate execution in Linq.  There an interesting variations how Linq operators executes and in this post we are going to learn both Deferred execution and immediate execution. What is Deferred...
Filed under: , , ,

SelectMany operator in Linq C# by Jalpesh P. Vadgama

SelectMany is an important operator in Linq. It takes each element of a sequence to an IEnumerable and flattens the resulting sequences into one sequence. You can find out more information about different overload list from the below link. http://msdn...
Filed under: , , ,

Where I can find SQL generated by Linq-To-SQL by Jalpesh P. Vadgama

Yesterday I have written a blog post about Where I can find SQL Generated by Entity Framework? and same day I got request from one of the our reader Ramesh that how I can find SQL generated by Linq-To-SQL? . I thought its a good idea to write a blog post...
Filed under: , ,

Difference between SkipWhile and Where in linq by Jalpesh P. Vadgama

Before some time I have written a blog post about the SkipWhile operator and a reader of my blog asked me that we can do the same thing with Where also but there is a difference between this two. So In this post I am going to explain you difference between...
Filed under: , ,

SkipWhile Method in Linq by Jalpesh P. Vadgama

I have been playing around linq and I have found great method call SkipWhile method.  SkipWhile methods skips particular element which matches condition in predicate this can be use full in condition where we need to skip elements on particular condition...
Filed under: ,

Creating Basic RSS Reader in ASP.NET MVC 3 by Jalpesh P. Vadgama

In this post I am going to explain you how we can create a basic RSS Reader with the help of Linq-To-Xml and ASP.NET MVC3  Razor. Those who are writing or reading Blogs already knows what is RSS Reader. But those who does not know What is RSS. Below...
Filed under: , , ,

Distinct operator in Linq by Jalpesh P. Vadgama

Linq operator provides great flexibility and easy way of coding. Let’s again take one more example of distinct operator. As name suggest it will find the distinct elements from IEnumerable. Let’s take an example of array in console application and then...
Filed under: , , ,

GUID Vs Int data type as primary key by Jalpesh P. Vadgama

Recently one of my friend ask me when I should go for GUID and When I should go for Int as primary key in table. So decided to write a blog post for it. Here are advantages and disadvantage of the GUID and INT. INT Data Type: Advantages: Its required...

LinqDatasource A Great Control for declarative programming by Jalpesh P. Vadgama

I have used data source control many times and its great it provides us great features for declarative binding. LinqDataSource Control is a great control and it allows us to bind linq queries without writing any code declaratively. Let’s create a example...

Using Let Keyword in Linq by Jalpesh P. Vadgama

I am using Linq-To-Object in my current project to remove some extra loops and I have found one of the great keyword in Linq called ‘Let’. Let keyword provides facility to declare a temporary variable inside the Linq Query.We can assign the result of...
Filed under: , ,
More Posts Next page »