Browse by Tags

Tagged Content List
  • Blog Post: Productivity Improvements for the Entity Framework

    Background We’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...
  • Blog Post: Using HTML entities in XML Literals (Avner Aharoni)

    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...
  • Blog Post: Spot the Bug! – The Key to using Anonymous Types (Jonathan Aneja)

    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...
  • Blog Post: Linking Zune media items with LinQ, Part 2 (Matt Gertz)

    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. J Code for the controls (continued) The Title TextBox When the title changes, we’ll want to indicate that the playlist has changed...
  • Blog Post: Linking Zune media items with LinQ, Part 1 (Matt Gertz)

    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...
  • Blog Post: Dynamic Searching using LINQ - Dataset + Joins

    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...
  • Blog Post: XML Literals, WCF and LINQ Article by Steele Price (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...
  • Blog Post: When using LINQ to XML why don’t I get results if I don’t import a XML namespace (Daniel Walzenbach)?

    Hi, I posted a bit of code the other day which I used to get a list of all Code Snippets we ship in Visual Studio . In a nutshell, I used XElement.Load to create a new XML document from a filename from which I then read elements from (There are way to many ‘”from” in this sentence ;-) ). Unfortunately...
  • Blog Post: How to get a list of all files of a directory (subdirectories included) (Daniel Walzenbach)?

    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...
  • Blog Post: Community Article: Scaling ADO.NET DataTables (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...
  • Blog Post: Video: Microsoft Visual Basic 2008 Tips and Tricks (Lisa Feigenbaum)

    I've blogged the session materials for this presentation before, but now we finally have the video available too! Here are some section markers: Enjoy! http://www.microsoft.com/emea/teched2008/developer/tv/default.aspx?vid=79
  • Blog Post: Tutorial: Functional Programming with Visual Basic 9.0 (Lisa Feigenbaum)

    Using Visual Basic, and thinking about Functional Programming? Here's an excerpt from Eric White's blog , explaining why you should: Functional Programming (FP) has the potential to reduce program line count by 20% to 50%, reduce bugs and increase robustness, and move us in the direction of taking...
  • Blog Post: TechEd Barcelona: Session Materials (Lisa Feigenbaum)

    I'm here at TechEd Barcelona, and the week has gotten off to a great start. Jason Zander did the keynote this afternoon, and announced lots of great tooling support that will be included in Visual Studio 2010! Exciting stuff. I have 4 sessions here, starting tomorrow. I've attached the materials at...
  • Blog Post: Visual Basic at TechEd SouthEast Asia (Lisa Feigenbaum)

    This is a follow-up to my presentations at TechEd SouthEast Asia. Please find all the descriptions and materials for the presentations on the following resource page: http://code.msdn.microsoft.com/techedsea Here are some direct links to the materials: TLA 314 - Visual Basic 2008 Tips and Tricks...
  • Blog Post: Visual Basic at TechEd South Africa 2008 (Lisa Feigenbaum)

    Thanks to those of you who attended my sessions at TechEd South Africa 2008. As promised here are the presentation materials I used, so you try out the examples yourself! I've created a Code Gallery resource page to host the material, with all the session abstracts, powerpoints, and solutions. That resource...
  • Blog Post: VB 2008 Language Deep Dive - Presentation Materials (Jonathan Aneja)

    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 the link below; here’s the session abstract...
  • Blog Post: Article: Sharpening Your Axis with Visual Basic 9 (Beth Massi)

    In the July/August issue of CoDe Magazine there's an article I wrote with Avner Aharoni (the Program Manager on XML literals) called Sharpening Your Axis with Visual Basic 9 . (They just opened up online access to even non-subscribers today!) I highly recommend this article which shows you from the beginning...
  • Blog Post: TechEd US 2008: Presentation Materials for TLA325 (Lisa Feigenbaum)

    This week I presented "Microsoft Visual Basic IDE Tips and Tricks" at TechEd US 2008. Thanks to those of you who attended. The presentation materials are listed below. Slide deck 2008 solution - post demo version 2005 solution - post demo version 2008 solution - pre demo version 2005...
  • Blog Post: Come hear about VB 2008 Tips & Tricks at TechEd US! (Lisa Feigenbaum)

    The VB team has two great sessions coming up on Wednesday June 4th, covering tips & tricks for the language and IDE. Abstracts are below. Hope to see you there! TLA319 Microsoft Visual Basic 2008: Microsoft LINQ Language Tips, Tricks, and Best Practices Wednesday, June 4 10:15 AM - 11:30...
  • Blog Post: LINQ Deep Dive and Best Practices Presentation Materials (Lisa Feigenbaum)

    I presented the following talk this week at VSLive! Orlando 2008 : Visual Studio 2008: LINQ Deep Dive and Best Practices LINQ (Language Integrated Query) is a key platform innovation introduced with Visual Studio 2008 which brings SQL-style query expressions into VB and C# enabling you to describe...
  • Blog Post: VB 2008 IDE Tips & Tricks Presentation Materials (Lisa Feigenbaum)

    Last week I went on a user group tour around Southern California. I've uploaded the materials from my talk: Powerpoint presentation Solution at the Start of the Demo Solution at the End of the Demo You can find these all posted together on the following Code Gallery page . The demo...
  • Blog Post: How LINQ to Dataset works in VB (Jonathan Aneja)

    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 ). Now when working with LINQ to Dataset we have...
  • Blog Post: Using LINQ to Dataset in an .aspx page (Jonathan Aneja)

    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'"). The code he sent looks correct, so why is the compiler...
  • Blog Post: Converting SQL to LINQ, Part 10: Like (Bill Horst)

    This post assumes you’ve read my previous Converting SQL to LINQ posts. I haven’t had much in the way of specific requests for more LINQ posts, so I’d still welcome any suggestions that people want to offer. I did get one request about how to mimic the LIKE keyword functionality in VB LINQ. ...
  • Blog Post: VB XML Cookbook, Recipe 4: Get Inner XML from the Nodes Property (Doug Rothaus)

    Recipe 3 showed one way to work with mixed XML content using the XML Descendant axis property and the ReplaceWith method. This is one way to do an identity transform and we’ll look at another method in a later post. There is a key capability not mentioned in Recipe 3 that you will need for fully-functioning...
Page 1 of 5 (107 items) 12345