Mike Taulty's Blog
Bits and Bytes from Microsoft UK
All Tags » .NET » LINQ (RSS)

Browse Blog Posts by Tags

Showing related tags and posts for the Blogs application. See all tags in the site
  • TechDays UK – Client Development Sessions (80%) Available

    The sessions from the client development day at TechDays UK are available. I’ve brought them together here but you can also visit the TechDays site to grab slide-decks and other resources; “The Client Decade” Marc Holmes , Microsoft “Visual Studio 2010 and WPF 4.0” Ian Griffiths , Interact Software ...
    Posted to Mike Taulty's Blog by mtaulty on Fri, Apr 30 2010
    Filed under: Filed under: , , , , , , ,
  • DataGrid - Master/Details

    Following on from that previous post about the WPF DataGrid I thought it might be interesting to try and move towards more of a master/details view with a separate grid displaying the orders for each customer. I modified the UI a little bit; < Window x:Class ="BlogPost.Window1" xmlns ="http://schemas...
    Posted to Mike Taulty's Blog by mtaulty on Wed, Oct 1 2008
    Filed under: Filed under: , , ,
  • Messing with Dynamic LINQ Queries

    Mike was chatting to me about how you'd take something like this ( against LINQ to SQL and the Northwind database ); using (NorthwindDataContext ctx = new NorthwindDataContext() { Log = Console.Out }) { string [] values = { "A" , "B" , "C" }; var query = from c in ctx.Customers select c; foreach ( string...
    Posted to Mike Taulty's Blog by mtaulty on Thu, Sep 11 2008
    Filed under: Filed under: , , ,
  • On LINQ to SQL, Concurrency and Timestamps

    I came across a bit of a glitch in using timestamps for checking concurrency violations in LINQ to SQL and thought I'd share. Say I've got a table like; create table Person ( id int identity primary key , firstName nvarchar(30), lastName nvarchar(30), timestamp ) so, we have a simple table that has a...
    Posted to Mike Taulty's Blog by mtaulty on Tue, Jul 1 2008
    Filed under: Filed under: , , , ,
  • ACCU Talk on VS 2008

    I'm doing a talk down at ACCU this evening on VS 2008 and, specifically, as it's a short talk focusing on what I think is the biggest single thing in VS 2008 which is what changes around the languages and LINQ. The slides for the talk are here in PPTX , PPT and PDF formats.
    Posted to Mike Taulty's Blog by mtaulty on Thu, Jun 19 2008
    Filed under: Filed under: , ,
  • Entity Framework Talk at VBUG Bristol

    Thanks to the people who came along to my talk on Entity Framework at VBUG in Bristol yesterday. I promised that I'd make the slides available and they can be found here for download in PPTX format and PDF format . This was more or less the same talk as I delivered at Southampton the week before so these...
    Posted to Mike Taulty's Blog by mtaulty on Wed, Apr 23 2008
    Filed under: Filed under: , , ,
  • LINQ to XSD is Back :-)

    A new version of the LINQ to XSD preview that works with Visual Studio 2008. Get the details from here . If you're not so sure on what LINQ to XSD is all about it's essentially for the people who see some LINQ to XML code and say; "But how come the LINQ to XML code has all those ugly strings and casts...
    Posted to Mike Taulty's Blog by mtaulty on Thu, Feb 21 2008
    Filed under: Filed under: , ,
  • LINQ to [SQL/Entities]

    I've encountered this strange piece of logic a few times now; Feedback: I really like LINQ to [SQL/Entities] but it generates dynamic SQL and I don't like dynamic SQL. Response: Ok, why not use stored procedures from LINQ to [SQL/Entities] and then you won't have dynamic SQL? Feedback: But if I use stored...
    Posted to Mike Taulty's Blog by mtaulty on Fri, Dec 7 2007
    Filed under: Filed under: ,
  • LINQ to SQL: Asynchronously Executing Queries

    I saw a question recently about how to asynchronously execute a LINQ to SQL query. Unless you want to go down the "fake async" route of pushing a query out onto the ThreadPool, you can (AFAIK) do real async work by using the GetCommand() method of the DataContext and then doing the work yourself. So...
    Posted to Mike Taulty's Blog by mtaulty on Thu, Dec 6 2007
    Filed under: Filed under: , ,
  • LINQ to SQL: DataContext.Translate and Anonymous Types

    I was thinking about DataContext.Translate today and what it means for anonymous types. Let's say you've got something like; using (NorthwindDataContext ctx = new NorthwindDataContext()) { ctx.Connection.Open(); using (DbCommand com = ctx.Connection.CreateCommand()) { com.CommandText = "select c.CustomerId...
    Posted to Mike Taulty's Blog by mtaulty on Thu, Dec 6 2007
    Filed under: Filed under: ,
  • LINQ to XML and IXPathNavigable

    Something I've been pondering. Living over in System.Xml.XPath is an extension method to XNode (from LINQ to XML) called CreateNavigator . So, given something like an XElement ; XElement x = new XElement( "foo" ); I can go ahead and get an XPathNavigator from it; XElement x = new XElement( "foo" ); XPathNavigator...
    Posted to Mike Taulty's Blog by mtaulty on Fri, Nov 30 2007
    Filed under: Filed under: , ,
  • LINQ to SQL and WCF - Sharing types, subverting the DataContext on the client side

    Ok, so this whole post probably falls into the category of "nasty hack" but it was something that I was playing with so I thought I'd share. I wrote a little bit here previously about working with LINQ to SQL in a disconnected sense and wrote about how, if you wanted to manage concurrency in a reasonable...
    Posted to Mike Taulty's Blog by mtaulty on Tue, Oct 9 2007
    Filed under: Filed under: , ,
  • The Perils of Live Demos

    I did a bit of a poor talk on LINQ today. One of the reasons that it didn't go so well was that my most basic of LINQ to SQL demos wasn't working. Now, I've demo'd LINQ to SQL in "intro" form (and quite a bit beyond) maybe 20 times and it always works fine. Not today. Today was the day when my most basic...
    Posted to Mike Taulty's Blog by mtaulty on Thu, Oct 4 2007
    Filed under: Filed under: ,
  • XML, LINQ, Databinding a ListBox to an Anonymous Type

    I've got this XML file; it's an export of the Northwind Employees table. I load this up with LINQ to XML and then I want to databind it into a Windows Forms ListBox. In the ListBox, I want to display a concatenation of the firstName and lastName but I also want to be able to get back to the XElement...
    Posted to Mike Taulty's Blog by mtaulty on Mon, Sep 10 2007
    Filed under: Filed under: ,
  • LINQ to XML and Larger Files

    LINQ to XML and the XML API that underpins it contained in the System.Xml.Linq namespace is essentially a DOM-like API. This means that documents are loaded into memory to form a "tree" representation and that act of loading into memory means that the bigger the document you have, the more memory you...
    Posted to Mike Taulty's Blog by mtaulty on Sat, Sep 8 2007
    Filed under: Filed under: , ,
Page 1 of 1 (15 items)
(C) Mike Taulty, 2010. All rights reserved. The information in this weblog is provided "AS IS" with no warranties, and confers no rights. This weblog does not represent the thoughts, intentions, plans or strategies of my employer. It is solely my opinion. Inappropriate comments will be deleted at the authors discretion. All code samples are provided "AS IS" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems