Any idea whether the xml that FNH is generating is correct? Are you able to
figure out the XML to pass to the schema generator that will correctly
create your column? If so we could compare that to what FNH is generating.

Paul Batum

On Fri, Feb 27, 2009 at 4:53 AM, Steven Harman <stevehar...@gmail.com>wrote:

> Let's say we have the following class & class mapping:
>
> class Idea
> {
>     public virtual byte[] TS {get;set;}
> }
>
> class IdeaMapping : ClassMap<Idea>
> {
>     public IdeaMapping()
>     {
>         Map(x =>
> x.TS).ValueIsAutoNumber().AsReadOnly().CustomSqlTypeIs("timestamp");
>     }
> }
>
> Given this, nHibernate will read the timestamp data into the Idea entity
> correctly, so that's good. However, when generating the schema, the output
> is:
>
> create table [Idea] (TS varbinary(8000) null)
>
> but we really want this:
>
> create table [Idea] (TS timestamp not null)
>
> I imagine that is possible and I'm just missing something basic... yes?
>
> Thanks,
> -steve
>
> //----  90% of being smart is knowing what you're dumb at  ----//
> http://stevenharman.net/
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibernate@googlegroups.com
To unsubscribe from this group, send email to 
fluent-nhibernate+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to