Possible Duplicate:
SELECT @@DBTS using Linq to SQL
Sql binary to c# - How to get SQL binary equivalent of binary in c#
I have one SQL table with one binary column. It has some data in binary format.
e.g. 0x9A8B9D9A002020202020202020202020
I am using LINQ context to fetch the data from this table. Can anyone help me in getting this. Here is a sample code I am using,
IEnumerable<byte[]> query = context
.ExecuteQuery<byte[]>("select empPWD from Employee where employeeId = E32");
When I run this code it gives an error, like need to do mapping something alike.
The exact error message;
The type 'System.Byte[]' must declare a default (parameterless) constructor in order to be constructed during mapping.
Please help me if anyone knows this.