I have a SQL Server 2012 database. Each table has a set of audit fields. One is a column named RowVer with a datatype of timestamp (same as rowversion
timestamp
rowversion
If you are using .NET 4.5 or newer you can do
user.RowVersion = rdr.GetFieldValue(18);
If you are on 4.0 or older you will need to perform a cast.
user.RowVersion = rdr.GetValue(18) as byte[];