What does a timestamp in T-Sql mean in C#?

后端 未结 4 1591
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-03 11:07

I\'m trying to develop a model object to hold a Sql Server row, and I understand perfectly how to do this except for the T-Sql/SqlServer timestamp. The table is defined as:

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-03 11:40

    According to this post

    you'll have to cast it to a byte array.

    byte[] dt = dataReader["dt"] as byte[];
    

提交回复
热议问题