Servefault.com - Stories tagged with Linq
1
votes

CASE Statement Equivalent in LINQ « Sankarsan’s Journal

posted by sankarsansankarsan 75 days, 3 hours, 9 minutes ago
Sunday, May 16, 2010 7:05:44 AM GMT
Last Friday while having a discussion on various LINQ standard query operators the topic of expressing T-SQL CASE statement in LINQ came up. The most obvious solution to this is using the ternary operator as shown below: (more)
category: Unspecified | clicked: 0 | comment | | source: sankarsan.wordpress.com
tags: Entity Framework, Linq
5
votes

Performance: Using dynamic code to copy property values of two objects

published 170 days, 21 hours, 27 minutes ago posted by gpeipmangpeipman 177 days, 10 hours, 16 minutes ago
Tuesday, February 09, 2010 12:48:36 PM GMT Tuesday, February 02, 2010 11:58:59 PM GMT
Last year I wrote short posting about how to use LINQ to find matching properties of two objects. In this posting I will show you how to copy values from one object to another and how to boost up performance so you can use this strategy also on in servers under heavy load. (more)
category: Visual Studio | clicked: 1 | 1 comment | | source: weblogs.asp.net
tags: .Net, Linq, performance, reflection
3
votes

Using LINQ and reflection to find matching properties of objects

published 210 days, 23 hours, 21 minutes ago posted by gpeipmangpeipman 215 days, 21 hours, 35 minutes ago
Thursday, December 31, 2009 10:54:04 AM GMT Saturday, December 26, 2009 12:40:22 PM GMT
As a side product of some experiments I wrote simple LINQ query that matches properties of two objects and returns these properties as list. The code I wrote is pretty simple and I packed it for you as method. (more)
category: ASP.NET | clicked: 3 | comment | | source: weblogs.asp.net
tags: Linq, reflection
3
votes

Introduction to the Reactive Framework Part III - Matthew Podwysocki's Blog

published 253 days, 22 hours, 6 minutes ago posted by IXWebHostingIXWebHosting 259 days, 2 hours, 35 minutes ago
Wednesday, November 18, 2009 12:09:21 PM GMT Friday, November 13, 2009 7:40:26 AM GMT
In my previous post in the Introduction to the Reactive Framework series, I discussed the duality between the IEnumerable/IEnumerator and IObservable/IObserver and how that enables us to generalize the ideas from LINQ to Objects to LINQ to Observables/Events.  After the last post, I was asked how we go from events to Observables, so let’s tackle that in this post. Before we get started, let’s get caught up to where we are today:Part I – IntroductionPart II – Duality of Enumerable/ObservableFrom Events..... (more)
category: ASP.NET | clicked: 0 | comment | | source: weblogs.asp.net
tags: Linq, Reactive Framework
3
votes

Parent – Child in recursive data table with LINQ - Muhanad YOUNIS

published 260 days, 5 hours, 46 minutes ago posted by GodaddyGodaddy 264 days, 4 hours, 40 minutes ago
Thursday, November 12, 2009 4:29:38 AM GMT Sunday, November 08, 2009 5:34:45 AM GMT
Parent – Child in recursive data table with LINQ If you have a data table which looks like this one below and holds child,parent rows at the same table;IDParentIDNameguid1nullparent 1guid2guid1child for parent 1so onso onso on and you wont to retrieve all records from the table in a table looks like below;ParentChildsparent 1child 1 for parent 1 child 2 for parent 1 child 3 for parent 1 ….Parent 2child 1 for parent 2 child 2 for parent 2 …. This mea... (more)
category: ASP.NET | clicked: 2 | comment | | source: weblogs.asp.net
tags: Linq
1
votes

KiGG ASP.NET MVC Open Source Project - Home

posted by GodaddyGodaddy 296 days, 23 hours, 20 minutes ago
Tuesday, October 06, 2009 10:54:44 AM GMT
KiGG is a Web 2.0 style social news web application developed in Microsoft supported technologies. ASP.NET MVC Linq To SQL or Entity Framework MS Patterns & Practices – Enterprise Library (Logging & Caching) MS Patterns & Practices - Unity (more)
category: Open Source | clicked: 1 | comment | | source: kigg.codeplex.com
tags: ASP.NET MVC, Kigg, Linq, SQL
3
votes

SQL to LINQ Cheat Sheet - Windows Live

published 305 days, 1 hour, 21 minutes ago posted by MicrosoftMicrosoft 306 days, 8 hours, 25 minutes ago
Monday, September 28, 2009 8:54:29 AM GMT Sunday, September 27, 2009 1:50:38 AM GMT
SQL to LINQ Cheat Sheet If you are already working with SQL and are familiar with SQL queries then you may find you at time are thinking of converting SQL syntax to LINQ syntax when writing LINQ. Following cheat sheet should help you with some of the common queries SQL LINQ Lambda SELECT * FROM HumanResources.Employee from e in Employees select e Employees .Select (e => e) SELECT e.LoginID, e.JobTitle FROM HumanResources.Employee AS e from e in Employees select new {e.LoginID, e.JobTitle}... (more)
category: SQL | clicked: 1 | comment | | source: dotnethitman.spaces.live.com
tags: Linq, SQL
3
votes

Understanding LINQ and LINQ to SQL (and EF)

published 306 days, 8 hours, 12 minutes ago posted by MicrosoftMicrosoft 306 days, 23 hours, 3 minutes ago
Sunday, September 27, 2009 2:03:05 AM GMT Saturday, September 26, 2009 11:12:18 AM GMT
Understanding LINQ and LINQ to SQL (and EF)   Back to basics for this post. Developers often throw around the word LINQ when talking about a number of different technologies. Now that I have been comfortably using a wide variety of LINQ technologies for a fair amount of time, I’m now able to convey some of the key differences that are critical to using LINQ technologies efficiently. I’m also using this as a foundation and reference for some exciting upcoming post... (more)
category: SQL | clicked: 2 | comment | | source: www.ytechie.com
tags: EF, Linq, SQL
1
votes

an Open Source Utility that Automatically Create Data Transfer Objects based on LINQ to SQL Data Classes - Shahar Gvirtz's Weblog

posted by MicrosoftMicrosoft 306 days, 23 hours, 17 minutes ago
Saturday, September 26, 2009 10:58:40 AM GMT
An Open Source Utility that Automatically Create Data Transfer Objects based on LINQ to SQL Data Classes Few weeks ago I posted in my Hebrew blog a post about using Data Transfer Objects to work with LINQ to SQL and ADO.NET Entity Framework (that currently both of them doesn’t support working with POCO). One of the comments I got was that using DTO’s takes twice the time than not using them. That’s because you have to write DTO class for each entity and you also have to write  method in the DTO cla... (more)
category: SQL | clicked: 0 | comment | | source: weblogs.asp.net
tags: Data Transfer, DTO, Linq, Open Source, POCO, SQL Data