I found a solution.
public class OracleDriverExtended : OracleDataClientDriver
{
public override void AdjustCommand(System.Data.IDbCommand command)
{
OracleCommand cmd = command as OracleCommand;
if (cmd != null)
cmd.InitialLONGFetchSize = -1;
}
}
And add this class on the connection.driver_class in the hibernate.cfg.xml.
Thank you anyway.
On Wed, Sep 25, 2013 at 11:54 AM, Felipe Oriani <[email protected]>wrote:
> Hello friends, I have a problem with nhibernate.
> I have a Oracle database and in a table of this database, I have a column
> of Long type (to store large strings). I cannot change the type because
> other systems use it as long type.
>
> Everytime I try to access this column, I get the empty string and finding
> a solution for this, I just get a ado.net access and I have to set the
> "InitialLONGFetchSize" property to -1 in a OracleCommand and i get it
> woking fine.
>
> I would like to know, if is there a way to set this property in the
> command that will execute queries internally in nhibernate? Is there a
> Command Factory method or somenthing like this I can override?
>
> Thank you.
>
>
> --
> ______________________________________
> Felipe B Oriani
> felipeoriani.com.br [email protected]
>
--
______________________________________
Felipe B Oriani
felipeoriani.com.br [email protected]
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/groups/opt_out.