DotNetShoutout - Stories tagged with Linq
10
Shouts

Scott Hanselman's Computer Zen - The Weekly Source Code 47 - ASP.NET 3.5 Dynamic Data: FilterRepeaters and Dynamic Linq Query Generation

published 1250 days, 4 hours, 10 minutes ago posted by ali62bali62b 1252 days, 4 hours, 7 minutes ago
Friday, January 15, 2010 12:54:58 PM GMT Wednesday, January 13, 2010 12:58:04 PM GMT
First, let me start this post by thanking Tatham Oddie. He helped my buddy John Batdorf and I debug our issue remotely from Australia. He's patient, kind, opinionated and Tatham's got a darn fine blog that you should subscribe to now. I also found great inspiration from Stephen Naughton's excellent blog. He's continually pushing ASP.NET and Dynamic Data to do fun things and I was able to use 95% of his auto-complete code as I found it. And finally Marcin Dobosz's blogis where I started, taking his Dynami... (more)
category: Web Dev | clicked: 0 | comment | | source: www.hanselman.com
tags: Dynamic Data, Linq
3
Shouts

.NET & Architecture Thoughts: LINQ Explained – Part 4

posted by ali62bali62b 1256 days, 12 hours, 16 minutes ago
Saturday, January 09, 2010 4:49:08 AM GMT
This is the fourth part of my on-going series on Language Integrated Query or LINQ. I have been away from this series for a while. However my following posts (including this one) are aimed at completing this series. In the second and third posts, we had an overview of the features which are important to understand to have a full grasp of LINQ. In this post, we will have a detailed look at LINQ syntax and explore its different features. So let us get started. Introduction LINQ is a set of languag... (more)
category: Data | clicked: 0 | comment | | source: dotnetpost.blogspot.com
tags: Linq
6
Shouts

Connected Show #22 - PHP LINQ Fest

posted by plaudatiplaudati 1258 days, 16 hours ago
Thursday, January 07, 2010 1:05:37 AM GMT
In this episode, guest Maarten Balliauw joins Peter to discuss his implementation of Language Integrated Query (LINQ) for PHP and linking (non-pun intended) PHP to Microsoft Office Excel via the PHPExcel project. Maarten is a Microsoft MVP for ASP.NET and a PHP developer. Also, Dmitry and Peter discuss WinCache for PHP 1.0, Moonlight 2.0, and having a backup strategy. (more)
category: Podcast | clicked: 0 | comment | | source: www.connectedshow.com
tags: Moonlight, Bing Maps, Excel, Linq, PHP
10
Shouts

What’s the deal with AsEnumerable?

published 1256 days, 4 hours, 36 minutes ago posted by KodefuGuruKodefuGuru 1258 days, 18 hours, 51 minutes ago
Saturday, January 09, 2010 12:29:34 PM GMT Wednesday, January 06, 2010 10:14:15 PM GMT
There’s an odd LINQ method that appears to do nothing but is actually quite useful: AsEnumerable().Declarations When using LINQ in C#, we typically use the var keyword as it beats typing IEnumerable (more)
category: How To | clicked: 1 | comment | | source: www.kodefuguru.com
tags: Linq
3
Shouts

LINQ: How to get the latest/last record with a group by clause « Mehroz’s Experiments

posted by mehrozmehroz 1266 days, 22 hours, 10 minutes ago
Tuesday, December 29, 2009 6:55:40 PM GMT
Sometimes, we need to select a record that has the maximum or minimum value from a group. Such scenarios are beautifully handled by TSQL’s Row_Number() over partition by clauses. In LINQ, similary result can be achieved by using the let keyword. Here's an example: (more)
category: Architecture | clicked: 18 | comment | | source: smehrozalam.wordpress.com
tags: latest, partition by, row_number, min, max, first, Linq, last
10
Shouts

Using LINQ and reflection to find matching properties of objects

published 1267 days, 3 hours, 36 minutes ago posted by gpeipmangpeipman 1270 days, 5 hours, 18 minutes ago
Tuesday, December 29, 2009 1:29:13 PM GMT Saturday, December 26, 2009 11:47:39 AM GMT
Using LINQ and reflection to find matching properties of objects 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: How To | clicked: 2 | comment | | source: weblogs.asp.net
tags: Reflection, Linq
11
Shouts

Linquify - Business Class Generator for LINQ to SQL, Entity Framework

published 1272 days, 20 hours, 23 minutes ago posted by surfer6surfer6 1274 days, 1 hour, 48 minutes ago
Wednesday, December 23, 2009 8:42:22 PM GMT Tuesday, December 22, 2009 3:17:09 PM GMT
Introducing Linquify! A free C# .NET business class generator that makes LINQ to SQL and the Entity Framework extremely easy to use! It installs as a Visual Studio 2008 Addin and helps support rapid development of .NET and ASP .NET web application data layers. (more)
category: Web Dev | clicked: 13 | comment | | source: www.primaryobjects.com
tags: Linq2Sql, .NET, code generator, Linq To SQL, Entity Framework, C#, linquify, Linq
9
Shouts

Why You Should Use the Null Coalescing Operator

published 1275 days, 3 hours, 20 minutes ago posted by KodefuGuruKodefuGuru 1276 days, 9 hours, 12 minutes ago
Monday, December 21, 2009 1:45:49 PM GMT Sunday, December 20, 2009 7:53:16 AM GMT
Introduced in C# 2.0, the null coalescing operator (??) allows one to program in a concise, declarative fashion when performing null checks. This was important in 2005 as it made it easier to utilize another important feature: nullable types. Nullable types solved the problem of representing a value type that also contained a null value. This representation of value types is common in databases, and oftentimes caused problems when doing relational to object mapping. Nullable types are generic structs t... (more)
category: How To | clicked: 0 | 1 comment | | source: www.kodefuguru.com
tags: Generics, ADO.NET, nullables, Linq
8
Shouts

LinqDataSource error on Update or Insert

published 1279 days, 6 hours, 39 minutes ago posted by http://www.google.com/profiles/liam.davieshttp://www.google.com/profiles/liam.davies 1280 days, 16 hours, 41 minutes ago
Thursday, December 17, 2009 10:26:45 AM GMT Wednesday, December 16, 2009 12:24:38 AM GMT
LinqDataSources and GridViews generally operate very well together. Some of the error messages can be confusing though, so here is a note about a very common one - "Could not find a row that matches the given keys in the original values stored in ViewState. Ensure that the 'keys' dictionary contains unique key values that correspond to a row returned from the previous Select operation." (more)
category: Web Dev | clicked: 6 | comment | | source: instantdevelopment.blogspot.com
tags: GridView, Linq, data source
11
Shouts

Mindscape LightSpeed 3.0 Released!

published 1280 days, 5 hours, 21 minutes ago posted by traskjdtraskjd 1281 days, 16 hours, 11 minutes ago
Wednesday, December 16, 2009 11:43:56 AM GMT Tuesday, December 15, 2009 12:54:24 AM GMT
Mindscape have released LightSpeed 3.0 - the third version of their .NET O/R Mapper with Visual Studio Integration. LightSpeed 3.0 includes a new migrations framework baked into the visual designer to save developers writing SQL schema migrations, improved querying and LINQ capabilities, testing enhancements and much more. (more)
category: How To | clicked: 1 | comment | | source: www.mindscape.co.nz
tags: LightSpeed, Linq, ORM, migrations, Mindscape
8
Shouts

Demystifying LINQ Aggregates

published 1281 days, 5 hours, 23 minutes ago posted by http://jkolpack.myopenid.com/http://jkolpack.myopenid.com/ 1282 days, 21 hours, 1 minute ago
Tuesday, December 15, 2009 11:41:59 AM GMT Sunday, December 13, 2009 8:04:23 PM GMT
This post aims to dissect the power that exists in the Aggregate LINQ operator. I have realized that most programmers use it sparingly and have decided to put a couple of examples to clarify how you can use the Aggregate operator to perform a few tricks. The screenshot below relates to the small examples that follow. The aggregate operator is interesting in that it enables accumulation of items to form some result. This comes in handy when we need to create new data items from others. In my exampl... (more)
category: How To | clicked: 1 | comment | | source: geekswithblogs.net
tags: Linq
8
Shouts

How to find an element in c# Generic List

published 1285 days, 9 hours, 34 minutes ago posted by kcherupakcherupa 1287 days, 11 hours, 52 minutes ago
Friday, December 11, 2009 7:31:15 AM GMT Wednesday, December 09, 2009 5:13:43 AM GMT
The following sample code demonstrates you how to find a matching element in the object list. Let's say we have an object called Person with public properties PersonID, Name, Age, Gender as defined below. using System.Collections.Generic.List; public class Person { public int PersonID {get; set;} public string Name {get; set;} public int Age {get; set;} public bool Gender {get; set;} } class program { public static void Main(string[] args) { // Let's say we have a method de... (more)
category: Agile | clicked: 2 | comment | | source: cherupally.blogspot.com
tags: Generics, Find, C#, List, collection, Linq
3
Shouts

Any() versus Count()

posted by KodefuGuruKodefuGuru 1288 days, 17 hours, 41 minutes ago
Monday, December 07, 2009 11:23:55 PM GMT
Jimmy Bogard brought to my attention today that I had been doing something wrong all along. I’ve been using Count() on my enumerations when I should have been using Any(). I’ve even done this in a presentation I’ve been giving the past few months. This is from Mash Up.if (businesses.Count() == 0) { return PartialView("Message", new MessageViewData { Header = "No Results Found", Message = "We didn't find anything near your location." }); } else { return View(new ResultsViewData { G... (more)
category: How To | clicked: 0 | comment | | source: www.kodefuguru.com
tags: Linq
11
Shouts

LINQ to CSV using DynamicObject

published 1292 days, 7 hours, 26 minutes ago posted by KodefuGuruKodefuGuru 1294 days, 14 hours, 39 minutes ago
Friday, December 04, 2009 9:39:23 AM GMT Wednesday, December 02, 2009 2:26:10 AM GMT
When we wrote LINQ in Action we included a sample of how to simply query against a CSV file using the following LINQ query: From line In File.ReadAllLines(“books.csv”) Where Not Line.StartsWith(“#”) Let parts = line.Split(“,”c) Select Isbn = parts(0), Title = parts(1), Publisher = parts(3) While this code does make dealing with CSV easier, it would be nicer if we could refer to our columns as if they were properties where the property name came from the header row in the CSV file, perhaps using... (more)
category: How To | clicked: 2 | comment | | source: www.thinqlinq.com
tags: dynamic, Linq, CSV
4
Shouts

What is this Microsoft StreamInsight thing?

posted by KodefuGuruKodefuGuru 1294 days, 17 hours, 56 minutes ago
Tuesday, December 01, 2009 11:09:37 PM GMT
It appears that I skipped over a booth at PDC09, because I had no clue what StreamInsight was when I came across the Novermber CTP today. Of course, I downloaded it. Microsoft® SQL Server® StreamInsight is a platform for the continuous and incremental processing of unending sequences of events (event streams) from multiple sources with near-zero latency. These requirements, shared by vertical markets such as manufacturing, oil and gas, utilities, financial services, health care, web analytics, and IT an... (more)
category: Data | clicked: 5 | comment | | source: www.kodefuguru.com
tags: Linq, StreamInsight, CEP
10
Shouts

IEnumerable.ToDictionary()

published 1294 days, 5 hours, 17 minutes ago posted by KodefuGuruKodefuGuru 1295 days, 12 hours, 24 minutes ago
Wednesday, December 02, 2009 11:48:50 AM GMT Tuesday, December 01, 2009 4:41:12 AM GMT
When retrieving data from web services, it’s sometimes obvious it was meant to be represented as a dictionary. In my coworkers case earlier today, he was getting back a simple class from a web service written in Java (don’t blame me for the exposed fields).public class KeyValuePairType { public string Key; public string Value; } He wanted to access the values as nature (err, C#) intended it:Dictionary (more)
category: How To | clicked: 0 | comment | | source: www.kodefuguru.com
tags: IEnumerable, Linq
10
Shouts

Instant Development: Using an interface to reuse Linq queries

published 1296 days, 27 minutes ago posted by http://www.google.com/profiles/liam.davieshttp://www.google.com/profiles/liam.davies 1298 days, 4 hours, 51 minutes ago
Monday, November 30, 2009 4:38:20 PM GMT Saturday, November 28, 2009 12:14:49 PM GMT
I just read a post about convention based Linq querying and thought I would followup with an alternative method for implementation. One downside that I see with the implementation of building the expression tree is that the entity may not have an Id property. In this case I would definitely want to see a compile error rather than runtime. So a simple solution may be to decorate the entities with a marker interface and the place the constraint on the extension method generic, such as public i... (more)
category: Web Dev | clicked: 2 | 1 comment | | source: instantdevelopment.blogspot.com
tags: Linq
11
Shouts

Binding Installed fonts in dropdownlist using LINQ

published 1296 days, 21 hours, 20 minutes ago posted by http://quachnguyen.myopenid.com/http://quachnguyen.myopenid.com/ 1299 days, 2 minutes ago
Sunday, November 29, 2009 7:45:00 PM GMT Friday, November 27, 2009 5:03:42 PM GMT
In this blog I will give you snippet code which fetches installed font in dropdownlist in .NET using both C# and VB.NET. Start with creating a new website using asp.net C# and VB.NET. Drag a dropdownlist from toolbox into web page. Here is markup: (more)
category: Web Dev | clicked: 3 | 1 comment | | source: code2code.info
tags: Linq
Previous 1 2 3 4 5 6 7 8 9 10 Next