Exemplo n.º 1
0
 public static DateTime GetServerDateTime(this IDbConnection connection)
 {
     Njit.Sql.ServerHelper serverHelper = new Njit.Sql.ServerHelper(connection.ConnectionString);
     return(serverHelper.GetServerDateTime());
 }
Exemplo n.º 2
0
 public static string GetServerTime(this IDbConnection connection)
 {
     Njit.Sql.ServerHelper serverHelper = new Njit.Sql.ServerHelper(connection.ConnectionString);
     return(Njit.Common.PersianCalendar.GetTime(serverHelper.GetServerDateTime(), ":", true));
 }