AnantLabs / codesmith

Automatically exported from code.google.com/p/codesmith
1 stars 0 forks source link

CSLA - VarBinary(MAX) is not required but SQL insert fails #519

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If nothing is assigned to this property, even if it not required by the table, 
then it looks like it doesn't get intialized to an empty value.  

That is, the value is "Nothing" when the SQL statement gets it and fails.

I assigned it an empty array of 8 bytes in a partial OnCreating method and the 
problem is solved.

Reading and writing everything else is just fine.

version 1947

Original issue reported on code.google.com by bill.n...@gmail.com on 18 Oct 2010 at 6:03

GoogleCodeExporter commented 9 years ago
Hello,

Can you please specify the code your putting in the OnCreating. Also the column 
definition is: ColumnName varbinary(max) not null

Thanks

-Blake Niemyjski

Original comment by bniemyjski on 18 Oct 2010 at 6:46

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 9 Mar 2012 at 8:02

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r2530.

Fixed a bug in the CSLA templates where VarBinary(MAX) is not required but SQL 
insert fails

Original comment by bniemyjski on 12 Mar 2012 at 3:58

GoogleCodeExporter commented 9 years ago

Original comment by bniemyjski on 12 Mar 2012 at 3:58