When building a class and I want an nvarchar(255) I can decorate the property with:
[StringLength(255)]
public string Name { get; set; }
What can I do for a byte[] to make sure the column that gets created is a binary(16) in the database?
Thanks.
You would use the following:
[MaxLength(16)]
public byte[] SomeByteArray { get; set; }