Is your string property *
Company.Businessframework.Domain.FileInfoEntity.Client* marked as not-null? 
If you are getting a DBNull then perhaps it shouldn't not-null.

RP

On Thursday, October 10, 2013 11:13:07 AM UTC+1, guilemsola wrote:
>
> Hi all,
>
> I am debugging an update when performing a select statement. I have found 
> some information regarding this issue due to bad mapping with database 
> alignment, specially with nullables.
>
> BTW I have found that with log4net enabled I get some exceptions not shown 
> otherwise. Is that possible? Is this some kind of mechanism to give more 
> detail issues?
>
> For instance I get a "*NHibernate.PropertyValueException: Error 
> dehydrating property value for 
> Company.Businessframework.Domain.FileInfoEntity.Client ---> 
> System.InvalidCastException: Unable to cast object of type 'System.DBNull' 
> to type 'System.String'.*" that I do not receive if I execute the same 
> without logging.
>
> Here you have a more detailed log http://pastebin.com/KZX96qwr
>
> Best Regards
>

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

Reply via email to