Thanks Jon. Always helpful!

Ok. Well for now it's not too hard to manually change datetime to byte[] in
the designer.

Are there any plans to use mysql.data.dll to do the type mappings (as
suggested on those bug reports) any time soon?

If not I may have a hack and submit the code.

Regards,

James Darbyshire

Sent from my Samsung Droidâ„¢

On 21/09/2010 12:36 PM, "Jonathan Pryor" <[email protected]> wrote:

On Tue, 2010-09-21 at 09:32 +1000, James Darbyshire wrote:
> I found the mapping here
> --> http://m...
My apologies, I apparently misread "timestamp" as "datetime."  I need to
check my reading comprehension. :-/

Anyway, the reason it's mapped to DateTime is because of
src/DbLinq/Vendor/Implementation/SchemaLoader.TypeMapping.cs
SchemaLoader.MapDbType():

           case "timestamp":
           // ...
               return typeof(DateTime);

Alas, I don't know why this type was selected; the commit message
doesn't provide any help [0].

Looks like another case of i238 [1]/i271 [2]: DbLinq really shouldn't be
hard-coding these type mappings...

 - Jon

[0] r934: Added uuid type support (for PostgreSQL)
[1] http://code.google.com/p/dblinq2007/issues/detail?id=238
[2] http://code.google.com/p/dblinq2007/issues/detail?id=271


--

You received this message because you are subscribed to the Google Groups
"DbLinq" group.
To post to...

-- 
You received this message because you are subscribed to the Google Groups 
"DbLinq" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/dblinq?hl=en.

Reply via email to