Slight gotcha: using FluentNhibernate mapped my byte[] to
varbinary(8000). Had to use .Length(int.MaxValue) on the mapping.

On Aug 18, 2:49 pm, Diego Mijelshon <[email protected]> wrote:
> Unless the attachment is a text file, it should be byte[]. NH automatically
> maps that to the corresponding DB datatype (it's RDBMS-specific)
>
>     Diego
>
> On Wed, Aug 18, 2010 at 08:30, alexey_baranov <[email protected]> wrote:
> > What is the correct way to store attachments with NHibernate?
>
> > what data type should I use in net class string or byte[] ?
> > what data type should I use in NH mapping BLOB or CLOB?
>
> > Thanks!
>
> > --
> > 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