I've experimented with overriding and inheriting the Dialect and SqlDriver but I can't find a dependency to the used database types. It seems that I can't change the typmapping through implementing my own SqlDriver without having a lot of work. Maybe there is a better way in the ClassBinder? So I could set the propertytype to Ansistring if it was set through the .NET String type.
On Sep 14, 10:21 am, Armin Landscheidt <[email protected]> wrote: > I think I won't use another tool for this case. If it is possible I > would override this part in the SqlClientDriver. > Could someone help me out and give me an hint how to do this? I've > looked at the methodes but I haven't found the right one yet. > > On 13 Sep., 13:53, Diego Mijelshon <[email protected]> wrote: > > > mapper is a ConfOrm.NH.Mapper instance. > > > While ConfORM is best suited for model-first development, it works very well > > on databases with well-defined standards. > > > Diego > > > On Mon, Sep 13, 2010 at 05:30, Armin Landscheidt < > > > [email protected]> wrote: > > > Thanks for your answers. > > > > How can I set the type this way ? > > > > mapper.AddPropertyPattern(p => p.GetPropertyOrFieldType() == > > > typeof(string), pm => pm.Type(NHibernateUtil.AnsiString)); > > > > whats mapper in this case? > > > > -- > > > 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.
