Storing binary data using Entity Framework

This is a real quick post, not my usual verbose ramblings :)

If you want to store binary data within a database column using Code First, then store the data as a byte array (see below).

public class SomeData
{
   // properties etc.

   // binary data, will be converted to a varbinary(max) in SQL Server
   public byte[] Data { get; set; }
}