LINQ in Action roller

Linq to Sql problems: Column named 'User', Insert Transaction Timeouts

I am still using 2005May CTP (since it's an easy download), and wanted to mention two issues: 1. We have a database containing this clever table: CREATE TABLE [Calculation] ( [CalculationID] [bigint] IDENTITY (1, 1) NOT NULL , [User] [varchar] (50) COLLATE Latin1_General_CI_AS NOT NULL ) Now when Linq bravely tries to insert into this table, it doesn't realise that 'User' is a keyword, and issues an invalid insert. There is an easy workaround - go into generated C# code and change the line: [Column(Storage="_User")] Read More...
Published Thursday, March 29, 2007 10:11 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication