Browse by Tags

Spot the Bug! – The Key to using Anonymous Types (Jonathan Aneja)
16 November 09 11:54 PM
This one’s going to be long, but for those of you who’ve felt the first 3 in this series were too easy I promise this one’s tougher J . Let’s say you want to list all the customers from a table in a ComboBox, and update the UI based on which one is selected. Read More...
Dynamic Searching using LINQ - Dataset + Joins
10 July 09 05:22 PM
About two years ago I posted some code that shows how to dynamically construct LINQ queries at runtime . On average there's a couple questions per month about trying it in some edge case, and usually the support already exists within the API. Recently Read More...
Postedby VBTeam | 5 Comments    
Attachment(s):DynamicQueries.zip
VB 2008 Language Deep Dive - Presentation Materials (Jonathan Aneja)
20 August 08 09:55 PM
Last week I got the chance to visit the Toronto .NET User Group and give a talk on all the great new language features in VB2008. It was great to see so much excitement a round LINQ and especially XML Literals ! The slides and demo code are posted at Read More...
Postedby VBTeam | 2 Comments    
How LINQ to Dataset works in VB (Jonathan Aneja)
14 May 08 04:52 PM
LINQ at its core requires any data source to be queryable , which basically means it must implement IEnumerable. (It’s actually a bit more complicated than that, for a full explanation see section 11.21.2 of the Visual Basic 9.0 Language Specification Read More...
Using LINQ to Dataset in an .aspx page (Jonathan Aneja)
13 May 08 06:35 PM
Recently I got a customer question about how to use LINQ to Dataset in an .aspx file. The compiler was complaining that it couldn't find the AsEnumerable method that allows LINQ to work over a DataTable ("AsEnumerable is not a member of 'DataTable'"). Read More...
Postedby VBTeam | 5 Comments    
Implementing Dynamic Searching Using LINQ
29 August 07 03:51 PM
A common requirement in forms-over-data applications is that users be able to search by any combination of fields to construct a dynamic query at run time. For example, the search feature in this application allows the user to find all records that meet Read More...
Postedby VBTeam | 21 Comments    
Attachment(s):DynamicCondition.zip
LINQ Cookbook, Recipe 7: Selecting Pages of Data from Northwind (Jonathan Aneja)
12 July 07 10:58 AM
Ingredients: - Visual Studio 2008 (Beta2 or Higher) - Connection to Northwind database Categories: LINQ-To-Objects, LINQ-To-SQL Instructions: · Create a new Windows Forms project with a Northwind DataContext (for step-by-step instructions on how to do Read More...
Postedby VBTeam | 8 Comments    
LINQ Cookbook, Recipe 3: Find all the prime numbers in a given range (Jonathan Aneja)
28 June 07 01:21 PM
Ingredients: - Visual Studio 2008 (Beta2 or Higher) Categories: LINQ-To-Objects Instructions: - Open Visual Studio 2008, and Click ‘File/New Project’. Find and double-click the ‘Console Application’ Icon - Add the following code: Module Module1 Sub Main() Read More...
Postedby VBTeam | 6 Comments    
VB6 Collections: The Missing LINQ
19 June 06 04:44 PM
By Jonathan Aneja Hi, my name’s Jonathan and I’m a Program Manager on the VB team, working mainly on LINQ features. One of the things I love about LINQ is it’s not just limited to querying over databases and XML – you can query over any collection of Read More...
Postedby VBTeam | 2 Comments    
Attachment(s):VB6_to_LINQ.zip

This Blog

Syndication

Page view tracker