Enum mapping to string
-
Sunday, February 03, 2008 12:37 AMIs there anything special that needs to be done to map enums to strings?
The MSDN documentation indicates that the enum-to-string mapping is supported (http://msdn2.microsoft.com/en-us/library/bb386947.aspx), but I am getting a DBML1005 error when I modify the type name from string to enum in the DBML designer.
All Replies
-
Saturday, February 09, 2008 5:44 AMAnybody?
-
Thursday, February 28, 2008 9:27 PMI'm seeing the same issue. Any advice?
-
Thursday, February 28, 2008 10:03 PMI found the answer here:
http://blog.rolpdog.com/2007/07/linq-to-sql-enum-mapping.html
It looks like you need to prepend your type name with "global::". The post did not mention the bug #.

