Categories
c# entity-framework entity-framework-4 sql

How to create complex datatype for column with spaces in the name?

I have a stored procedure that returns columns with spaces and dashes in the column names. I cannot simply use the “Get Column Information” button to automatically generate a complex type for this stored procedure.

How do I handle the spaces and dashes in the field names since they are not legal characters for field names in C#?