7

I have a table with some columns: 1. nvarchar(30), 2. int, 3. binary(16). Now, In c# I have a class that represents those columns:

public string aaa { get; set; }
public int bbb { get; set; }

And how do I write the third one (binary(16)) ?

Sergey Kalinichenko
  • 714,442
  • 84
  • 1,110
  • 1,523
David
  • 239
  • 1
  • 2
  • 12

1 Answers1

10

Binary column is commonly mapped to byte arrays:

public byte[] ThirdColumn {get; set;}
Sergey Kalinichenko
  • 714,442
  • 84
  • 1,110
  • 1,523