Pings the server to test the network and response speed of database. This method may needs some privilege according to the database product and its version. Examples Following section demonstrates ping and calculate average time. using(var exc = cn.Executer()) { var ping = exc.PingServer(); Console.WriteLine("Ping = " + ping.TotalMilliseconds.ToString() + "ms."); } Ping = 0ms. jJ0DZ7
using(var exc = cn.Executer()) { var ping = exc.PingServer(); Console.WriteLine("Ping = " + ping.TotalMilliseconds.ToString() + "ms."); }