Rowversion comparison in Entity Framework

前端 未结 3 2126
温柔的废话
温柔的废话 2021-02-14 22:31

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

3条回答
  •  闹比i
    闹比i (楼主)
    2021-02-14 23:06

    Are you sure that is Kosher use of RowVersion ? What happens when it rolls over ?

    I think you will need to convert it to string or int first. eg

    Encoding.Unicode.GetString(ba)
    

    You can also call SPs from EF. :-)

提交回复
热议问题