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

Browse Blog Posts by Tags

Showing related tags and posts for the Blogs application. See all tags in the site
  • 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: , , , ,
  • 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 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: , ,
Page 1 of 1 (5 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