Agreed. But I'd do it like this:

mapper.AddPropertyPattern(p => p.GetPropertyOrFieldType() ==
typeof(string), pm => pm.Type(NHibernateUtil.AnsiString));

In any case, he should also set the length for strings...

    Diego


On Sun, Sep 12, 2010 at 19:57, José F. Romaniello <[email protected]>wrote:

> if you are working with a legacy database is easiest to define it in one
> place to rule them all,
> agree?
>
> 2010/9/12 Diego Mijelshon <[email protected]>
>
> Why? All he has to do is set the correct types.
>
>
>  --
> 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]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>

-- 
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