Mike Taulty's Blog
Bits and Bytes from Microsoft UK
All Tags » LINQ » SQLServer (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: , , , ,
  • "When Do Queries Execute"

    Julie's got a great post about when stored procedures execute when using LINQ to Entities . It made me think about LINQ to SQL where if I've got something like; using (NorthwindDataContext ctx = new NorthwindDataContext()) { var query = ctx.GetCustomersByCountry( "UK" ); // SQL Happens Here! foreach...
    Posted to Mike Taulty's Blog by mtaulty on Wed, May 21 2008
    Filed under: Filed under: , ,
  • Mocking LINQ to SQL

    Matt Warren has an "interesting" post on how you could hack your way to a mocked implementation of LINQ to SQL - if I had a pound for every time someone's asked me how to do this then I'd have at least 3 pounds :-) Seriously though, there is interest in doing this kind of thing and it's a good starting...
    Posted to Mike Taulty's Blog by mtaulty on Fri, May 9 2008
    Filed under: Filed under: ,
  • LINQ to SQL and SqlConnection ( "when you're wrong, you're wrong" :-) )

    I was talking to Ian and another chap at the UK Launch yesterday about LINQ to SQL and my use of the DataContext in some demo code where I always tend to write something like; using (DataContext ctx = new DataContext()) { } and whether I actually needed to do that dispose or not? Now...I was pretty confident...
    Posted to Mike Taulty's Blog by mtaulty on Thu, Mar 20 2008
    Filed under: Filed under: ,
  • LINQ to SQL, Stored Procs, Output Params, Readers Reading

    I had a discussion at DevWeek about when SqlDataReader.Read () gets called for resultsets coming back from stored procedures accessed with LINQ to SQL. I've got this stored proc; create procedure dbo.GetCustomersByCountry @country nvarchar( max ) as set nocount on select * from dbo.customers where country...
    Posted to Mike Taulty's Blog by mtaulty on Thu, Mar 13 2008
    Filed under: Filed under: , ,
  • ADO.NET Entity Framework - QueryViews, Inline Functions in SSDL

    I have a mail from Tim on the EF team that I've had for a little while. I'd asked a question about mapping and he'd given me an answer saying something like "Oh, you could always do X, Y, Z" and I'd left this mail in my inbox for a while because I've been distracted and also because I didn't really understand...
    Posted to Mike Taulty's Blog by mtaulty on Fri, Feb 8 2008
    Filed under: Filed under: , , , ,
  • SQLBits - Birmingham, 1st March

    Just a quick plug :-) I'm speaking at the "SQLBits" conference in Birmingham on the 1st March. The agenda is up here . The agenda is built by voting from prospective attendees and I found it interesting in that I submitted a few sessions that looked something like; "Entity Framework Tour" "LINQ to SQL...
    Posted to Mike Taulty's Blog by mtaulty on Wed, Jan 30 2008
    Filed under: Filed under: ,
  • LINQ to SQL - Tailoring the Mapping at Runtime

    Mats has a post over here about concurrency in LINQ to SQL with a long write-up about issues that he sees in using the framework. I've not read all of it yet because the very first point that he raises sent me off on a bit of a tangent (which does not necessarily provide an answer to any/all of his post...
    Posted to Mike Taulty's Blog by mtaulty on Thu, Dec 20 2007
    Filed under: Filed under: , ,
  • New Entity Framework Bits

    Entity Framework Beta 3 is available along with a new Entity Designer (CTP 2) is out as well. These are for Visual Studio 2008 RTM and .NET Framework V3.5 RTM. Find blog posts up here; ADO.NET Entity Framework Beta 3 Released! Entity Designer CTP2 with the full details but I like the sound of; Simpler...
    Posted to Mike Taulty's Blog by mtaulty on Thu, Dec 6 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 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 (13 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