Yes, you need to use BinaryBlob for this. On Sun, Mar 21, 2010 at 7:18 PM, jason patterson <[email protected]>wrote:
> Hi guys, > > Commit 4915 broke my code so I am trying to understand if my my code > was wrong or if the change is wrong. > > Here is the commit: > http://github.com/leemhenson/nhibernate/commit/f72aa7987d1f88f3d1aab16f44c7fb1f7afd969c > > I am storing a double[] as type=Binary to Sql Server. When the length > is greater than 8000 bytes, it fails with a serialization exception. > > My guess is that I need to modify my code to use BinaryBlob, but I > just want to make sure commit 4915 didn't cause any unexpected > changes. > > Thanks, > Jason > > Here's a sample mapping. > > <class name="Foo" > > > <id name="Id" type="Guid" column="Id"> > <generator class="guid.comb"/> > </id> > > <property name="Name" /> > <property name="Values" column="ValuesArray" length="1000000" / > > > > </class> > > And the code. > > public class Foo > { > public virtual Guid Id { get; set; } > public virtual string Name { get; set; } > public virtual double[] Values { get; set; } > } > > To unsubscribe from this group, send email to nhibernate-development+ > unsubscribegooglegroups.com or reply to this email with the words "REMOVE > ME" as the subject. > To unsubscribe from this group, send email to nhibernate-development+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
