Because the ms sql server 'timestamp' data type is something
_completely_ different from C# DateTime.

You may want to read up on the differences between the following datatypes:
 sql standard timestamp
 ms sql server timestamp (deprecated)
 ms sql server rowversion
 ms sql server datetime
 C# DateTime

Hint: You probably want ms sql server datetime column when working
with that database.

/Oskar


2009/11/4 fancyplants <[email protected]>:
>
> Hi All,
>
> Am I missing something really obvious with timestamps?  If I declare a
> property in a hbm.xml mapping file of type timestamp, mapped to a
> timestamp column in the database, why doesn't nhibernate know to
> convert the byte[8] to and from a DateTime object?  Shouldn't this be
> available out of the box instead of each user having to reimplement a
> custom type?
>
> Does anyone have a solid custom type implementation in the meantime?
>
> Thanks
> FP
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to