How should I compare rowversion
fields using Entity Framework? I have one table which has a rowversion
column, I want to get data from tables for which the row version is higher than specified value.
byte[] rowversion = ... some value;
_context.Set<T>().Where(item => item.RowVersion > rowVersion);
This line does not work, it throws the error:
Operator '>' cannot be applied to operands of type 'byte[]' and 'byte[]'
Any idea how I can compare rowversion
fields in C#/Entity Framework?