コード例 #1
0
 /// <summary>
 /// Empties a table completely.
 /// </summary>
 /// <param name="tableName">The table you wish to TRUNCATE.</param>
 public void Truncate(string tableName)
 {
     if (String.IsNullOrEmpty(tableName))
     {
         throw new ArgumentNullException(nameof(tableName));
     }
     Query(PostgresqlHelper.TruncateQuery(tableName));
 }