using (IDbConnection conn = OpenConnection()) { string sql = "SELECT TOP 1 * FROM dbo.Students"; DataTable dt = new DataTable(); dt.Load(conn.ExecuteReader(sql)); }
时间: 2024-10-14 00:42:58
using (IDbConnection conn = OpenConnection()) { string sql = "SELECT TOP 1 * FROM dbo.Students"; DataTable dt = new DataTable(); dt.Load(conn.ExecuteReader(sql)); }