Latest Linq stories

String Matching in LINQ(blogs.telerik.com)

submitted by jnpetrovjnpetrov(95) 1 month, 3 days ago

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 perform string matching? Into which SQL is the LINQ expression translated? read more...

add a comment |category: |Views: 319

tags: another

Difference between SkipWhile and Where in linq(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1347) 1 month, 11 days ago

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 of collection based on condition. It will filter whole collection while SkipWhile will only skip those elements in list until condition is true and after that it will stop filtering of skipping. Now let’s take an example where we can see the difference between Where and SkipWhile. Following is a code for that. read more...

1 comment |category: |Views: 145

tags: another

SkipWhile Method in Linq(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1347) 1 month, 14 days ago

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 following console application code. read more...

add a comment |category: |Views: 7

tags: another

TakeWhile operator in linq(www.dotnetjalps.com)

submitted by jalpeshjalpesh(1347) 1 month, 14 days ago

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. read more...

add a comment |category: |Views: 20

tags: another

LOLCode Parser(chriscavanagh.wordpress.com)

submitted by BobStroggBobStrogg(1033) 2 months, 7 days ago

LOLCode parser and compiler. Now your cat can code for you. read more...

add a comment |category: |Views: 25

tags: another

Add a visual Linq expression builder to your app today!(www.codeproject.com)

submitted by dpetersondpeterson(4397) 3 months, 24 days ago

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. read more...

add a comment |category: |Views: 380

tags: another

A Generic Equality Comparer for LINQ(www.blackwasp.co.uk)

submitted by BlackWaspBlackWasp(4212) 4 months, 11 days ago

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. read more...

add a comment |category: |Views: 159

tags: another

Monadic Philosophy Part 2 – The LINQ Monad(devhawk.net)

submitted by pwhe23pwhe23(972) 4 months, 22 days ago

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 concepts that non-math geeks come across. Because I couldn't draw an analogy of monads to anything at first, it made grasping the concept of monads very hard for me. read more...

1 comment |category: |Views: 157

tags: another

Seeing the SQL Generated by LINQ to Entity Queries -- Visual Studio Ma(visualstudiomagazine.com)

submitted by pwhe23pwhe23(972) 5 months, 16 days ago

Sometimes you really, really, really want to see the SQL that LINQ generates when working with the Entity Framework. There is a really simple way to do this using the immediate window that does not involve installing a profiler. read more...

add a comment |category: |Views: 218

tags: another

Architecting Your Data Access Layer with the Entity Framework(www.wadewegner.com)

submitted by mopenmopen(3596) 5 months, 26 days ago

I had the pleasure to co-present with one of my fellow evangelists, Dave Bost, on architecting and developing with the ADO.NET Entity Framework this week. I focused on application architecture topics while Dave focused on developing applications. read more...

add a comment |category: |Views: 86

tags: another

NHibernate.Linq Pitfalls: Casting(notherdev.blogspot.com)

submitted by notherdevnotherdev(238) 6 months, 28 days ago

One thing that needs to be always remembered when writing NHibernate.Linq queries is that it is going to be translated into SQL eventually. What this means is that we can't do everything in our Select or Where conditions - we are restricted by the capabilities of underlying database and SQL language itself. read more...

7 comments |category: |Views: 123

tags: another

Dynamic Lambda Expression For Sorting A List / Collection Using Comple(www.jebarson.info)

submitted by jebarson007jebarson007(150) 9 months, 2 days ago

In my previous post we discussed on sorting the list / collection using dynamic lambda expression for properties. In this article we will see how to sort on complex properties. So what is a complex property. Consider the class diagram as shown below In our scenario, we have “Employee” entity, where we have a property “Department” which is a complex type. Now let us assume that we are binding the list of employees list along with the department name, then we will have to use item template along with “Bind” method called. read more...

1 comment |category: |Views: 31

tags: another

Dynamic OrderBy using LINQ to SQL(www.craigwardman.com)

submitted by craigwcraigw(115) 9 months, 4 days ago

Dynamically ordering your data when using LINQ to SQL as a backend read more...

add a comment |category: |Views: 17

tags: another

LINQ - Comparing Count() to Any()(colinmackay.co.uk)

submitted by dpetersondpeterson(4397) 9 months, 7 days ago

Compares the performance differences and considerations between using Count and Any to determine if any elements in a collection match a filter. A commenter also points out that using Any with an embedded filter gives different performance results as well. While it's important not to prematurely optimize, it is important to consider the points in this article if you write queries like this that run in a tight loop or iterate over large sets of data. read more...

add a comment |category: |Views: 34

tags: another

Paging in LINQ(gaaton.blogspot.com)

submitted by HaGeverHaGever(915) 9 months, 22 days ago

Implementation paging in LINQ read more...

2 comments |category: |Views: 11

tags: another

Samples for Parallel Programming with the .NET Framework(coolthingoftheday.blogspot.com)

submitted by rcashrcash(4149) 9 months, 26 days ago

The .NET Framework 4 comes with several new features for writing parallel and concurrent applications, including Parallel LINQ (PLINQ), the Task Parallel Library (TPL), new thread-safe collections, and plenty of new coordination and synchronization data structures. This sample includes example applications and library functionality that demonstrate this support. read more...

1 comment |category: |Views: 17

tags: another