DotNetShoutout - Stories tagged with Linq
3
Shouts

Linq to NHibernate - String.Equals with StringComparison option

published 705 days, 4 hours, 25 minutes ago posted by Guardian11Guardian11 706 days, 15 hours ago
Wednesday, June 15, 2011 7:34:46 PM GMT Tuesday, June 14, 2011 9:00:01 AM GMT
How to extend the Linq to NHibernate provider to support the overloaded String.Equals(string ,StringComparison) (more)
category: Data | clicked: 15 | comment | | source: www.primordialcode.com
tags: NHibernate, Linq
3
Shouts

GMind Solution: IQueryable Vs. IEnumerable in terms of LINQ to SQL queries

published 706 days, 11 hours, 43 minutes ago posted by http://pranayamr.myopenid.com/http://pranayamr.myopenid.com/ 707 days, 6 hours, 12 minutes ago
Tuesday, June 14, 2011 12:17:32 PM GMT Monday, June 13, 2011 5:47:40 PM GMT
Few days ago I am working on my project which is having Linq to Sql as database layer. I got requirement to get the first of all employee who's designation starts with "soft". I get fired below query and got the result in IEnumerable varible IEnumerable (more)
category: How To | clicked: 23 | comment | | source: pranayamr.blogspot.com
tags: Linq To SQL, Linq, C# .NET
5
Shouts

C#/.NET Little Wonders: Empty(), DefaultIfEmpty(), and Count()

published 714 days, 4 hours, 42 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 717 days, 23 hours, 48 minutes ago
Monday, June 06, 2011 7:18:03 PM GMT Friday, June 03, 2011 12:12:32 AM GMT
Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to write and maintain. On this post I will finish examining the System.Linq methods in the static class Enumerable by examining two extension methods Count() and DefaultIfEmpty(), and one static method Empty(). (more)
category: Web Dev | clicked: 45 | comment | | source: www.blackrabbitcoder.net
tags: .NET, Empty, Little Wonders, C#, IEnumerable, enumerable, Any, Count, Linq, DefaultIfEmpty
7
Shouts

Into and let in LINQ ( Let vs Into)

published 720 days, 12 hours, 15 minutes ago posted by http://pranayamr.myopenid.com/http://pranayamr.myopenid.com/ 721 days, 12 hours, 35 minutes ago
Tuesday, May 31, 2011 11:45:38 AM GMT Monday, May 30, 2011 11:25:00 AM GMT
In this post I am going to show two keyword of the C# 3.0 is very helpful when playing with the set of object collection using LINQ feature. Into Into keyword allows creating a temporary variable to store the results of a group, join or select clause into a new variable. var em = from e in emp group e by new{ e.DeptId} into gEmp where gEmp.Count() > 1 select new { gEmp.Key.DeptId, salary = gEmp.Su... (more)
category: How To | clicked: 24 | 1 comment | | source: pranayamr.blogspot.com
tags: C#, Linq
3
Shouts

Projecting Indexes with LINQ

published 726 days, 16 hours, 17 minutes ago posted by BlackWaspBlackWasp 727 days, 2 hours, 6 minutes ago
Wednesday, May 25, 2011 7:43:28 AM GMT Tuesday, May 24, 2011 9:53:56 PM GMT
All sequences have a notional order that can be expressed using index values in a similar manner to the indexes of an array. When projecting sequences using LINQ's Select and SelectMany operators, this index value can be included in the projection. (more)
category: How To | clicked: 1 | comment | | source: www.blackwasp.co.uk
tags: Linq
6
Shouts

C#/.NET Fundamentals: Of Lambdas and LINQ

published 726 days, 16 hours, 17 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 728 days, 18 hours, 46 minutes ago
Wednesday, May 25, 2011 7:43:28 AM GMT Monday, May 23, 2011 5:13:43 AM GMT
This is a quick presentation I threw together for a group of developers who requested a quick primer on using lambda expressions and the more common LINQ extension methods.  It seemed like a good general knowledge presentation so I decided to upload it to slideshare and reference it here as well. This is not meant to be a comprehensive discussion of everything that lambda expressions and LINQ have to offer, but is just sort of a very basic introduction. (more)
category: Web Dev | clicked: 2 | 1 comment | | source: geekswithblogs.net
tags: .NET, lambda, C#, Linq
4
Shouts

LINQ ToLookup Operator

published 727 days, 18 hours, 57 minutes ago posted by BlackWaspBlackWasp 729 days, 7 hours, 25 minutes ago
Tuesday, May 24, 2011 5:03:38 AM GMT Sunday, May 22, 2011 4:34:49 PM GMT
Language-Integrated Query (LINQ) provides several methods that allow a sequence to be manipulated, filtered and grouped. ToLookup performs a grouping operation that results in a sequence of key / value pairs, where each value is another sequence. (more)
category: How To | clicked: 2 | comment | | source: www.blackwasp.co.uk
tags: Linq
3
Shouts

A LINQ Style Mode Operator

published 731 days, 18 hours, 58 minutes ago posted by BlackWaspBlackWasp 733 days, 4 hours, 19 minutes ago
Friday, May 20, 2011 5:02:03 AM GMT Wednesday, May 18, 2011 7:41:05 PM GMT
Language Integrated Query (LINQ) includes the Average operator that can be used to calculate the mean value of a sequence. This article implements a LINQ operator that determines the mode, which is the most common value or group of values. (more)
category: How To | clicked: 0 | comment | | source: www.blackwasp.co.uk
tags: C#, Linq
6
Shouts

C#/.NET Little Wonders: 5 Easy Ways to Combine Sequences

published 735 days, 12 hours, 11 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 739 days, 50 minutes ago
Monday, May 16, 2011 11:49:14 AM GMT Thursday, May 12, 2011 11:09:45 PM GMT
Today I’m going to look at 5 different ways of combining two sequences together using LINQ extension methods. For the purposes of this discussion, I will split these 5 methods into homogeneous and heterogeneous methods which will combine like or unlike types respectively. (more)
category: Web Dev | clicked: 0 | comment | | source: blackrabbitcoder.net
tags: .NET, Concat, join, Little Wonders, C#, Union, Zip, GroupJoin, Linq
5
Shouts

Implementing the Zip Operator in .NET 3.5

published 739 days, 14 hours, 55 minutes ago posted by BlackWaspBlackWasp 741 days, 3 hours, 55 minutes ago
Thursday, May 12, 2011 9:05:18 AM GMT Tuesday, May 10, 2011 8:05:24 PM GMT
Microsoft introduced the Zip operator to Language-Integrated Query (LINQ) with the .NET framework version 4.0. This operator is not available in version 3.5 of the framework but can be implemented quite easily. (more)
category: How To | clicked: 1 | comment | | source: www.blackwasp.co.uk
tags: Linq
6
Shouts

Entity Framework and T4: Generate Query Objects on the fly, part 1 | Rui Jarimba

published 739 days, 14 hours, 55 minutes ago posted by http://ruijarimba.wordpress.com/http://ruijarimba.wordpress.com/ 743 days, 36 minutes ago
Thursday, May 12, 2011 9:05:18 AM GMT Sunday, May 08, 2011 11:23:45 PM GMT
Generate Query Objects on the fly for your Entity Framework entities using T4 templates. Don’t worry about LINQ, let the objects do all the work for you. (more)
category: Architecture | clicked: 7 | comment | | source: ruijarimba.wordpress.com
tags: .NET, T4, Entity Framework, C#, Query Object, Linq, Design Patterns
3
Shouts

Entity Framework and T4: Generate Query Objects on the fly, part 1 | Rui Jarimba

posted by http://ruijarimba.wordpress.com/http://ruijarimba.wordpress.com/ 743 days, 52 minutes ago
Sunday, May 08, 2011 11:08:13 PM GMT
Post navigation← PreviousEntity Framework and T4: Generate Query Objects on the fly, part 1Posted on May 9, 2011 by Rui Jarimba Generate Query Objects on the fly for your Entity Framework entities using T4 templates. Don’t worry about LINQ, let the objects do all the work for you. Table of contentsWhat is a Query Object?The Model – MVC Music StoreUsing T4 to generate Query ObjectsString propertiesDatetimes and numeric valuesAssociationsIQueryable (more)
category: Architecture | clicked: 1 | comment | | source: ruijarimba.wordpress.com
tags: .NET, Serialization, T4, Entity Framework, C#, Query Object, Linq, Design Patterns
4
Shouts

LINQ Zip Operator

published 742 days, 4 hours, 27 minutes ago posted by BlackWaspBlackWasp 744 days, 10 hours, 20 minutes ago
Monday, May 09, 2011 7:32:46 PM GMT Saturday, May 07, 2011 1:39:43 PM GMT
In the .NET framework version 4.0 Microsoft introduced the Zip method to the set of standard query operators. This extension method combines pairs of values from two sequences to generate a third set of values. (more)
category: How To | clicked: 2 | comment | | source: www.blackwasp.co.uk
tags: Linq
5
Shouts

C#/.NET Little Wonders: The LINQ Set Operations -- they're not just for math!

published 744 days, 16 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 745 days, 23 hours, 42 minutes ago
Saturday, May 07, 2011 11:43:58 PM GMT Friday, May 06, 2011 12:18:10 AM GMT
Today we are going to examine the LINQ set operations that are part of the IEnumerable (more)
category: Web Dev | clicked: 2 | comment | | source: blackrabbitcoder.net
tags: .NET, sets, Little Wonders, C#, Linq
5
Shouts

WebsiteSpark + Pluralsight - The Official Pluralsight Blog - Aaron Skonnard

published 746 days, 8 hours, 40 minutes ago posted by iftekharahmedamitiftekharahmedamit 747 days, 10 hours, 2 minutes ago
Thursday, May 05, 2011 3:20:37 PM GMT Wednesday, May 04, 2011 1:57:57 PM GMT
Today we are excited to announce a new strategic partnership between Pluralsight and WebsiteSpark. This partnership gives all WebsiteSpark members free Pluralsight On-Demand! training benefits. WebsiteSpark gives Web designers and developers a jump-start by providing the tools and resources needed to build great websites, free of cost. WebsiteSpark membe... (more)
category: Screencast | clicked: 14 | 1 comment | | source: blog.pluralsight.com
tags: Pluralsight, Windows Azure, Training, Windows Phone 7, Entity Framework, WebsiteSpark, Screencasts, MVC 3, jQuery, ASP.NET 4, WCF RIA Services, Linq, Screencast, HTML 5, Silverlight 5
5
Shouts

Custom LINQ Operators, Deferred Execution and Exceptions

published 750 days, 2 hours, 17 minutes ago posted by BlackWaspBlackWasp 750 days, 14 hours, 17 minutes ago
Sunday, May 01, 2011 9:43:20 PM GMT Sunday, May 01, 2011 9:43:38 AM GMT
The Language-Integrated Query (LINQ) standard query operators that return enumerable sequences use deferred execution but validate any source sequences immediately. Custom LINQ operators should exhibit the same behaviour. (more)
category: How To | clicked: 0 | 1 comment | | source: www.blackwasp.co.uk
tags: Linq
4
Shouts

C#/.NET Little Wonders: ElementAt() and Last()

published 750 days, 2 hours, 17 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 752 days, 23 hours, 22 minutes ago
Sunday, May 01, 2011 9:43:20 PM GMT Friday, April 29, 2011 12:38:29 AM GMT
Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can help improve your code by making it easier to write and maintain. This week we will look at the ElementAt() and Last() methods which can be used to get elements in a sequence at particular locations in the enumerable. (more)
category: Web Dev | clicked: 1 | comment | | source: www.blackrabbitcoder.net
tags: .NET, ElementAt, Little Wonders, C#, Linq, last
2
Shouts

Dynamic query with Linq

posted by http://pranayamr.myopenid.com/http://pranayamr.myopenid.com/ 763 days, 6 hours, 58 minutes ago
Monday, April 18, 2011 5:02:09 PM GMT
In this post I am going to discuss about building dynamic query with the LINQ. LINQ to SQL allow user to query data from the database without writing sql queries by writing LINQ queries. LINQ represent each table as one entity and where LINQ queries allows to manipulate data in type safe. But Static LINQ queries not able to meet all our programming needs. A Dynamic LINQ queries is needed when we need to retrieve a set of records based on different search parameters. For example - An employee se... (more)
category: How To | clicked: 1 | comment | | source: pranayamr.blogspot.com
tags: C#, Linq
4
Shouts

Indexed Sequences

published 762 days, 58 minutes ago posted by KodefuGuruKodefuGuru 763 days, 19 hours, 47 minutes ago
Tuesday, April 19, 2011 11:01:59 PM GMT Monday, April 18, 2011 4:12:40 AM GMT
Phil Haack has an interesting article about creating a better Razor foreach loop. It’s a useful solution when one needs to know the current index of an item enumerating a sequence, but I feel the concepts presented can be expanded upon outside of the scope of his article... (more)
category: How To | clicked: 0 | comment | | source: www.kodefuguru.com
tags: MONAD, extension method, wrapper, Linq
3
Shouts

C#/.NET Little Wonders: First() and Single() - Similar Yet Different

published 765 days, 9 hours, 36 minutes ago posted by BlackRabbitCoderBlackRabbitCoder 767 days, 45 minutes ago
Saturday, April 16, 2011 2:24:19 PM GMT Thursday, April 14, 2011 11:15:25 PM GMT
Once again, in this series of posts I look at the parts of the .NET Framework that may seem trivial, but can really help improve your code by making it easier to write and maintain. Today we're going to look at two LINQ extension methods that are both very similar and yet very different.  Logically, First() and Single() serve similar purposes, but there is a subtle difference between these two that if you aren't expecting it may give you different behaviors. (more)
category: Web Dev | clicked: 0 | comment | | source: blackrabbitcoder.net
tags: .NET, Little Wonders, C#, Linq