By tag: Linq
0
kicks
String Matching in LINQ
Performing simple string equality tests is often not enough when application user convenience is key. Often only a fragment of a string is known to the user, or many of them. Sometimes there is a need to search for a fragment in multiple columns.
Which options does OpenAccess and LINQ provide to pe...
0
kicks
Difference between SkipWhile and Where in linq
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 those two.
Where operator filters a list...
0
kicks
TakeWhile operator in linq
In this post I am going to explain TakeWhile Operator in details. TakeWhile is one of partitioning operator available in Linq. It will take sequence until condition becomes false.
0
kicks
SkipWhile Method in Linq
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.
So let’s take some example. I have written...
0
kicks
A LINQ Style Range Generator
Language-Integrated Query (LINQ) provides the Enumerable.Range method that generates incrementing sequences of integers. This article describes a similar method that allows the creation of more complex ranges with the repeated application of a function.
0
kicks
Building Expression Evaluator with Expression Trees in C# – Part 3
A third post of a series about building expression evaluator using expression trees in C#. This post adds support for variables using shunting yard algorithm.
0
kicks
Multiple where clauses in Linq
This might be common knowledge but I discovered today, that you can have as many where clauses in Linq as you like. Makes a Linq query look even cleaner (IMHO).
0
kicks
Build a mvc ajax application using javascript and knockout.js/mvvm
javascriptiqueryable: Javascript to IQueryable is a framework that allows you to write a simple query in javascript client side and then execute it server side with EntityFramework or a linq provider that implement IQueryable. On the server is used "Dynamic Expressions and Queries in LINQ by Mi...
0
kicks
Add a visual Linq expression builder to your app today!
Rabb Moshe Plotkin has created and open-sourced a control for creating Linq queries visually. Using this control, you can give your users the power to query data, rather than writing canned reports or queries.
0
kicks
A Generic Equality Comparer for LINQ
LINQ operators generally use lambda expressions to control their processing and output. Some operators use IEqualityComparer<T> implementations to compare values. This article describes a generic comparer, driven by delegates, designed for use in queries.
0
kicks
Shuffle in linq (part 2)
There are many times when we need to randomly sort a list or array.
0
kicks
Monadic Philosophy Part 2 – The LINQ Monad
If you don't come from a math or philosophy background (and I don't) "monad" sounds like a made-up word. Of course, understanding OO's use of terms like "class" and "object" can be hard to grok at first too. But at least those terms have some grounding in real-world con...
0
kicks
Sequence contains no elements : LINQ error
Learn how to fix linq and lambda expression error "Sequence contains no elements"