Simply add Byte[] to your CLR
public class Product
{
public int ProductId { get; set; }
[StringLength(40)]
public string Name { get; set; }
public Byte[] ProductImage { get; set; } //Maps to VARBINARY(MAX)
public string CategoryId { get; set; }
public virtual Category Category { get; set; }
}
No comments:
Post a Comment