I am working on converting some code and I am no longer using Recordsets and I am using datasets with SqlClient namespace. The code below is what I am trying to convert (ADODB to SqlClient). The datatype in SQL is datetime. Could I use a data table in place of a recordset? What is the best way to approach this? I did find a similar post Here but its doesnt fully answer my question.
else if (DateTime.Now - rs.Fields["time_of_lock"].Value < TimeSpan.FromMinutes(15))