Can a Linq query retrieve a BLOB from an Sql database?

Can a Linq query retrieve a BLOB from an Sql database?
And how do they get out?

+5
source share
2 answers

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.

+5
source

LINQ to SQL BLOB System.Byte []
, SqlMetal, BLOB, MSVS dmbl .

+1

All Articles