Thanks fabio. However we were able to solve it like this :
.SetParameter("OurInput","A very looooong string here",
NHibernate.Type.TypeFactory.GetStringType(int.MaxValue))
On Feb 16, 9:00 pm, Fabio Maulo <[email protected]> wrote:
> To have the old behavior, yes.
> Note: override mean that you have to create a class inheriting from the
> default and override that method; then you have to change the NH's
> configuration to use your
> class:http://fabiomaulo.blogspot.com/2009/06/nhibernate-configuration.html
> <http://fabiomaulo.blogspot.com/2009/06/nhibernate-configuration.html>http://fabiomaulo.blogspot.com/2009/07/nhibernate-fluent-configuratio...
> (find
> SqlClientDriver)http://fabiomaulo.blogspot.com/2009/07/nhibernate-configuration-throu...
>
> On Wed, Feb 16, 2011 at 3:45 PM, [email protected] <[email protected]>wrote:
>
>
>
> > Fabio thanks for the relply however this SP result is transformed to
> > an unmapped entity, so there is no place to write type="StringBlob"
> > it's just the SP. So the only option is override sqlclientdriver ?
>
> > On Feb 16, 6:29 pm, Fabio Maulo <[email protected]> wrote:
> > > No. It isn't.
> > > Map your string with type="StringClob" or use a custom implementation of
> > > the SqlClientDriver overriding GenerateCommand and commenting line 103.
> >http://nhibernate.svn.sourceforge.net/viewvc/nhibernate/trunk/nhibern...
>
> > > On Wed, Feb 16, 2011 at 12:55 PM, [email protected] <[email protected]
> > >wrote:
>
> > > > Hello we are using names queries as stored procedures it was working
> > > > with NHibernate 2.1
> > > > With nhibernate 3 it just trims the string parameters that is passed
> > > > to 4000 . It wasn't doing this with nhibernate 2 . Is this a bug ?
>
> > > > --
> > > > 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.
>
> > > --
> > > Fabio Maulo
>
> > --
> > 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.
>
> --
> Fabio Maulo
--
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.