Hi everybody,

I have a legacy FNH mapping, in use and working, which renders an
invalid SQL script when I try to export the schema. The problem seems
to be with the .Default() mapping.

This is what some of the failing mappings look like.

// x.Map is string
Map(x => x.Map).Column("Karta").Not.Nullable().Default("False");
// x.Active is bool
Map(x => x.Active).Column("Aktiv").Not.Nullable().Default("True");

They result in the following SQL

Karta NVARCHAR(255) default False  not null,
Aktiv BIT default True  not null,

which fails because True and False are not defined in SQL Server.

I've asked about this on SO as well, but recieved no response:
http://stackoverflow.com/questions/6507241/working-fluent-nhibernate-mappings-render-invalid-createschema-sql

Thanks for your help!

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" 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/fluent-nhibernate?hl=en.

Reply via email to