Is it possible to define a custom type converter so that I can save CLR objects into a sql field using Linq?
It looks like this capability should be available. The Visual Studio 2010 Linq-to-Sql designer exposes the Type property for each auto-generated CLR property.
However, when I set the type property to system.drawing.color, I get the error:
Error 1 DBML1005: Mapping between DbType 'Binary(4)'
and Type 'System.Drawing.Color' in Column 'PixelColor' of Type 'Character'
is not supported. 0 0
It seems like I should be able to implement this type converter somehow.