The LINQ-To-SQL classes create properties of type System.Data.Linq.Binary for all binary and varbinary fields in SQL-Server. The binary type has a .ToArray () method, which returns a byte [], and its constructor can accept bytes [].
Older versions of SQLMetal generated properties of type byte [], but the problem was that they did not work in any joins. I think the main reason they replaced it with the IEquatable binary type.
source
share