Using SQL Server 2008 TIME column in class declaration

前端 未结 1 1148
Happy的楠姐
Happy的楠姐 2021-01-24 09:07

I hope this makes sense, I am trying to store a SQL Server 2008 time(7) datatype in an object.

I am using the below to read the data into the object, but it

1条回答
  •  攒了一身酷
    2021-01-24 09:25

    Per the documentation, you should be using the TimeSpan type and SqlDataReader.GetTimeSpan.

    0 讨论(0)
提交回复
热议问题