Showing results for LINQ/VB9 - Visual Basic Blog

Jun 21, 2010
0
0

Productivity Improvements for the Entity Framework

VBTeam
VBTeam

BackgroundWe’ve been hearing a lot of good feedback on the recently released update to the Entity Framework in .NET 4. This release marks a significant advancement from the first release that shipped with .NET 3.5 SP1.  I’m not going to spend time here talking about what’s new, but you can check here to see for yourself...

May 24, 2010
0
0

Using HTML entities in XML Literals (Avner Aharoni)

VBTeam
VBTeam

One of the common use-cases of XML literals is creating HTML. However, HTML entities cannot be used in XML literals since LINQ to XML directly supports only the Data type definitions (DTD) defined in the XML 1.0 spec. You can read more about it here. The workaround is to use the Unicode representation of the entity, although it’s not as ...

Nov 16, 2009
0
0

Spot the Bug! – The Key to using Anonymous Types (Jonathan Aneja)

VBTeam
VBTeam

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.  To do this we’ll need to bring back two fields from...

Nov 7, 2009
0
0

Linking Zune media items with LinQ, Part 2 (Matt Gertz)

Anthony D. Green [MSFT]
Anthony D. Green [MSFT]

In this post, I’ll continue on with coding the new playlist shuffler.  If you haven’t read part 1 yet, I highly recommend it so that this post will make more sense. JCode for the controls (continued)The Title TextBoxWhen the title changes, we’ll want to indicate that the playlist has changed, and we’ll want to cache the...

Nov 6, 2009
0
0

Linking Zune media items with LinQ, Part 1 (Matt Gertz)

Anthony D. Green [MSFT]
Anthony D. Green [MSFT]

Way back in October 2007, I wrote up a few posts (here and here) on my experiments with the Windows Media Player object model.  The problem I was trying to solve was that, when I had a playlist set to “shuffle,” WMP would break up songs that should always play together (for example, Jackson Browne’s “The Load-Out&rdquo...

Jul 10, 2009
0
0

Dynamic Searching using LINQ – Dataset + Joins

VBTeam
VBTeam

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 though someone posted a question that has to do with Datasets and Joins that raised ...

May 2, 2009
0
0

XML Literals, WCF and LINQ Article by Steele Price (Lisa Feigenbaum)

Lisa Feigenbaum
Lisa Feigenbaum

Steele wrote a great article in last month's issue of Visual Studio Magazine on XML Literals, WCF and LINQ. He shows how to use these three technologies together to produce more responsive ASP.NET pages, and more readable code. Lots of great tips for VB 2008.VSM's "On VB" Column: XML Literals, WCF and LINQ by Steele Price...

Apr 23, 2009
0
0

How to get a list of all files of a directory (subdirectories included) (Daniel Walzenbach)?

VBTeam
VBTeam

I needed to create a list of all Code Snippets we ship in Visual Studio the other day containing their title, description and path on disc and size. As you might know, Code Snippets are stored in multiple directories below "%ProgramFiles%Microsoft Visual Studio 10.0" so I had to traverse all the subdirectories of the aforementioned path to find all...

Dec 18, 2008
0
0

Community Article: Scaling ADO.NET DataTables (Beth Massi)

Beth Massi
Beth Massi

We we released a new community article onto the Visual Basic Developer Center by one of our MVPs, Jeff Certain, called Scaling ADO.NET DataTables. In this article Jeff shows shows us how to query and aggregate data using the built in DataTable methods as well as LINQ to DataSets. He compares the performance on indexed and non indexed ...

Feedback