Updating records using linq undertheradardating com
Over the last few weeks I've been writing a series of blog posts that cover LINQ to SQL.
CREATE TABLE [dbo].[Foo Max]( [OID] [int] IDENTITY(1,1) NOT NULL, [ID] [nvarchar](50) NOT NULL, [Some Text] [nvarchar](max) NULL, [Some Binary] [varbinary](max) NULL, CONSTRAINT [PK_Foo Max] PRIMARY KEY CLUSTERED ([OID] ASC) ) above code means that the whole record is loaded into memory just to update a single column.I use an Update boolean variable to tell me if the information on the WPF window is to update, or to add.If the update is true, then the information in the WPF window is to be updated.Free counters Added on January 19,2012 Follow Me @vmsdurano A bit About Me Disclaimer The opinions expressed herein are my own personal opinions and does not represent the opinions of my employers.Nor does it represent the opinion of my dog, because I don’t have one. In this example I’m going to extend a little bit of what I have demonstrated in my previous example.