LINQ in Action roller

Colunm Name mappings

Hi All, I'm at a sticking point. I keep gettin a SQL exception - Invalid column name 'IncidentDate'. We have a database with a column called Incident Date. When writing code in C#, using T-SQL syntax, I'd reference the column as [Incident Date], but not moving to LINQ, I'm not sure how to do this. Here is the test class I have for the database [ Table (Name = "*FailureData" )] public class FailureData { [ Column (DbType = "varchar(50)" )] public string PrimeSec; [ Column (DbType = "varchar(50)" )] Read More...
Published Wednesday, May 21, 2008 3:22 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication