Just looking though the nhibernate source.

Schema Export tool calls "GenerateSchemaCreationScript" which takes
dialect
where the Sql2000.cs dialect has "RegisterColumnType(DbType.String,
"NVARCHAR(255)");"
which where potentially the problem is.

Maybe I have the wrong end of the stick though.

Mark


On Feb 10, 1:25 pm, James Gregory <[email protected]> wrote:
> CustomSqlTypeIs should work, or CustomTypeIs.
>
> On Tue, Feb 10, 2009 at 1:20 PM, Pezza <[email protected]> wrote:
>
> > Tried setting the withLengthOf() and that doesn't change the type of
> > the column.
> > Also tried customsqltypeis and that doesn't seem to have any effect.
>
> > Also cant find anything on the IProperty to change the column type.
>
> > Tried looking for "nvarchar" in the FluentNhibernate source and
> > nothing found there either.
>
> > Sorry to be a pain, any other pointers?
>
> > Mark
>
> > On Feb 10, 1:16 pm, James Gregory <[email protected]> wrote:
> > > Checkout the DescriptionTypeConvetion inhttp://
> > wiki.fluentnhibernate.org/show/AutoMappingTypeConventions
>
> > > On Tue, Feb 10, 2009 at 1:07 PM, Pezza <[email protected]>
> > wrote:
>
> > > > Hi
>
> > > > Just got everything rocking and rolling with the AutoMapper after some
> > > > "ID" related problems. I would like to map all my "string" properties
> > > > to varchar(x) columns and not nvarchar.
>
> > > > Have looked at ITypeConvention and .WithConvention but can't see the
> > > > obvious place to override this setting.
>
> > > > Any help greatly appreciated.
--~--~---------~--~----~------------~-------~--~----~
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