Set Linq To Sql Binary field to null
Posted
by Karsten
on Stack Overflow
See other posts from Stack Overflow
or by Karsten
Published on 2010-03-24T15:04:36Z
Indexed on
2010/03/24
15:23 UTC
Read the original article
Hit count: 483
Trying to set a Binary field to null gives me an ArgumentNull exception.
I can set the field to be empty like this new Binary(new byte[] {});
but that's not null just an empty column. Is there a workaround using LinqToSql ?
© Stack Overflow or respective owner