I've been using SubSonic for about 8 months and am just now getting started with migrations. They are truly righteous, but I'm having a problem. I need to create a table with a binary data field. In SQL Server terms, I need the data type to be "image". The likeliest candidate of the System.Data.DbType enum appears to be Binary. However, when using DbType.Binary, I end up with a tinyint. Here is some example code:
TableSchema.Table table = CreateTableWithKey("some_table");
table.AddColumn("binary_field", System.Data.DbType.Binary, 8000, false);
What I end up with in the database, again as I mentioned, is "binary_field" being a tinyint. This is not at all expected.
I took a look in the SubSonic source code and discovered what I think is the problem. There is a switch statement in ANSISqlGenerator.GetNativeType() that returns "tinyint" for DbType.Binary. Should this be changed and/or overridden in a subclass?
What does the communal wisdom suggest?