Where do you see that mapping? At:
http://msdn.microsoft.com/en-us/library/bb386947.aspx#DateMapping
I see that most types are mapped to DateTime, TimeSpan, or
DateTimeOffset. I don't see any mention of using Binary or byte[]
within DateTime mapping at all.
- Jon
--
You received this message because you are subscribed to the Google Groups "DbLinq" group.
To post to this group, send email to dbl...@googlegroups.com.
To unsubscribe from this group, send email to dblinq+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dblinq?hl=en.
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
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" <jonp...@vt.edu> 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...
I won't be working on it any time soon, as I'm swamped with other work.
If you decide to hack on it, you can look at
src/DbLinq.SqlServer/SqlServerSchemaLoader.cs for a base.
- Jon
No worries Jon, I will let you know when I have had a look into it.
Thanks again, jd
Regards,
James Darbyshire
Sent from my Samsung Droid™
On 22/09/2010 12:05 AM, "Jonathan Pryor" <jonp...@vt.edu> wrote:
On Tue, 2010-09-21 at 21:29 +1000, James Darbyshire wrote:
> Are there any plans to use mysql.data.d...
I won't be working on it any time soon, as I'm swamped with other work.
If you decide to hack on it, you can look at
src/DbLinq.SqlServer/SqlServerSchemaLoader.cs for a base.
- Jon
--
You received this message because you are subscribed to the Google Groups "DbLinq" group.
To post to this group, send email to dbl...@googlegroups.com.
To unsubscribe from this group, send e...